mirror of
https://github.com/callumio/suck.git
synced 2025-12-17 03:29:21 +00:00
Remove unnecessary Mutex
This commit is contained in:
parent
9843f2904c
commit
68369a7e4b
4 changed files with 12 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use crate::sync::traits::{ChannelError, ChannelReceiver, ChannelSender, ChannelType};
|
||||
use crate::types;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
#[cfg(feature = "sync-std")]
|
||||
use std::sync::mpsc;
|
||||
|
||||
|
|
@ -68,7 +69,7 @@ impl<T> StdSuck<T> {
|
|||
let sucker = crate::Sucker {
|
||||
request_tx,
|
||||
response_rx,
|
||||
closed: std::sync::Mutex::new(false),
|
||||
closed: AtomicBool::new(false),
|
||||
_phantom: std::marker::PhantomData,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue