Fix clippy warning

warning: this implementation is unsound, as some fields in `Connection` are `!Send`
   --> src/lib.rs:339:1
339 | unsafe impl Send for Connection {}
This commit is contained in:
gwenn
2021-12-04 10:07:56 +01:00
parent 934e0c709e
commit 28da7a2ad9
2 changed files with 5 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ pub struct InnerConnection {
owned: bool,
}
unsafe impl Send for InnerConnection {}
impl InnerConnection {
#[allow(clippy::mutex_atomic)]
#[inline]