Skip to content

Commit a4631e3

Browse files
committed
Refactor to assert that Send but not Sync is implemented
1 parent 60c1b91 commit a4631e3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ indexmap = { version = "1.1.0", optional = true }
2727
smallvec = { version = "1.0.0", optional = true }
2828
bytes = { version = "0.5", optional = true }
2929

30+
[dev-dependencies]
31+
static_assertions = "1.1.0"
32+
3033
[features]
3134
default = ["smallvec"]
3235
indexed = ["indexmap"]

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,3 +431,10 @@ where
431431
.with_meta(meta)
432432
.construct()
433433
}
434+
435+
436+
#[test]
437+
fn is_not_sync() {
438+
extern crate static_assertions as sa;
439+
sa::assert_not_impl_all!(ReadHandle<(), ()>: Send, Sync);
440+
}

0 commit comments

Comments
 (0)