Skip to content

Commit dc9637e

Browse files
committed
Refactor: remove OptionalSync bound from Guard
1 parent ae66f7f commit dc9637e

File tree

1 file changed

+1
-1
lines changed
  • openraft/src/type_config/async_runtime

1 file changed

+1
-1
lines changed

openraft/src/type_config/async_runtime/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::OptionalSync;
77
/// Represents an implementation of an asynchronous Mutex.
88
pub trait Mutex<T: OptionalSend + 'static>: OptionalSend + OptionalSync {
99
/// Handle to an acquired lock, should release it when dropped.
10-
type Guard<'a>: DerefMut<Target = T> + OptionalSend + OptionalSync
10+
type Guard<'a>: DerefMut<Target = T> + OptionalSend
1111
where Self: 'a;
1212

1313
/// Creates a new lock.

0 commit comments

Comments
 (0)