Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
pompon0 committed Jan 3, 2024
1 parent 4aad921 commit f2dae9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion node/libs/concurrency/src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ impl<T> ops::DerefMut for LocalMutexGuard<'_, T> {
}
}

/// Locks a mutex.
/// Locks a mutex, returning a guard which is NOT Send
/// (useful for ensuring that mutex is not held across await point).
/// Note that depending on a use case you might
/// want to wait unconditionally for a mutex to be locked
/// (when a mutex is guaranteed to be unlocked fast).
Expand Down
2 changes: 1 addition & 1 deletion node/libs/utils/src/no_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use std::ops;

/// No-copy wrapper allowing to carry a `Copy` type into a closure or an `async` block.
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct NoCopy<T>(T);

impl<T: Copy> NoCopy<T> {
Expand Down

0 comments on commit f2dae9a

Please sign in to comment.