Skip to content

Commit e2a2625

Browse files
committed
Fixed version compat, re-added stable channel to CI config
1 parent dcea0ec commit e2a2625

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
strategy:
1818
max-parallel: 3
1919
matrix:
20-
# TODO: add stable/beta once they're versions >= 1.83
21-
rust: [beta, nightly, 1.83.0, 1.65.0, 1.61.0, 1.57.0]
20+
rust: [stable, beta, nightly, 1.65.0, 1.61.0, 1.57.0]
2221

2322
steps:
2423
- uses: actions/checkout@v2

src/macros/simple_type_witness_macro.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,7 @@
448448
/// => {
449449
/// // caveat: if any of the witnessed types has the same Type::Kind as another,
450450
/// // then the variants with equal kinds will cause unwrap_ne to panic,
451-
/// //
452-
/// // important that the `unwrap_ne` is *outside* the `const {}`,
453-
/// // if it was inside the `const {}` it'd error when comparing equal witnesses
454-
/// // because const in dead code can still be evaluated
455-
/// const { Wit::KIND_WITNESS.equals(Wit2::KIND_WITNESS) }
451+
/// Wit::KIND_WITNESS.equals(Wit2::KIND_WITNESS)
456452
/// .unwrap_ne()
457453
/// .map_to_arg(TypeKindFn) // maps from kind to type
458454
/// .to_cmp()

src/type_ne/extra_type_ne_methods.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,13 @@ impl<L: ?Sized, R: ?Sized> TypeNe<L, R> {
223223
/// ```rust
224224
/// use typewit::TypeNe;
225225
///
226+
/// use std::sync::Arc;
227+
///
226228
/// with_typene(typewit::type_ne!(str, [u8]));
227229
///
228230
/// const fn with_typene(ne: TypeNe<str, [u8]>) {
229231
/// let _: TypeNe<&str, &[u8]> = ne.project_to_arg::<TargetFn, _, _>();
230-
/// let _: TypeNe<&mut str, Box<[u8]>> = ne.project_to_arg::<TargetFn, _, _>();
232+
/// let _: TypeNe<Arc<str>, Box<[u8]>> = ne.project_to_arg::<TargetFn, _, _>();
231233
/// let _: TypeNe<String, Vec<u8>> = ne.project_to_arg::<TargetFn, _, _>();
232234
/// }
233235
///

0 commit comments

Comments
 (0)