File tree 5 files changed +6
-6
lines changed 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub trait RaftTypeConfig:
72
72
/// See the [storage chapter of the guide][sto] for details on log compaction / snapshotting.
73
73
///
74
74
/// [sto]: crate::docs::getting_started#3-implement-raftlogstorage-and-raftstatemachine
75
- type SnapshotData : OptionalSend + OptionalSync + ' static ;
75
+ type SnapshotData : OptionalSend + ' static ;
76
76
77
77
/// Asynchronous runtime type.
78
78
type AsyncRuntime : AsyncRuntime ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl AsyncRuntime for TokioRuntime {
77
77
type MpscUnbounded = TokioMpscUnbounded ;
78
78
type Watch = TokioWatch ;
79
79
type Oneshot = TokioOneshot ;
80
- type Mutex < T : OptionalSend + OptionalSync + ' static > = TokioMutex < T > ;
80
+ type Mutex < T : OptionalSend + ' static > = TokioMutex < T > ;
81
81
}
82
82
83
83
pub struct TokioMpscUnbounded ;
@@ -203,7 +203,7 @@ where T: OptionalSend
203
203
type TokioMutex < T > = tokio:: sync:: Mutex < T > ;
204
204
205
205
impl < T > mutex:: Mutex < T > for TokioMutex < T >
206
- where T : OptionalSend + OptionalSync + ' static
206
+ where T : OptionalSend + ' static
207
207
{
208
208
type Guard < ' a > = tokio:: sync:: MutexGuard < ' a , T > ;
209
209
Original file line number Diff line number Diff line change @@ -104,5 +104,5 @@ pub trait AsyncRuntime: Debug + Default + PartialEq + Eq + OptionalSend + Option
104
104
105
105
type Oneshot : Oneshot ;
106
106
107
- type Mutex < T : OptionalSend + OptionalSync + ' static > : Mutex < T > ;
107
+ type Mutex < T : OptionalSend + ' static > : Mutex < T > ;
108
108
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use crate::OptionalSend;
5
5
use crate :: OptionalSync ;
6
6
7
7
/// Represents an implementation of an asynchronous Mutex.
8
- pub trait Mutex < T : OptionalSend + OptionalSync + ' static > : OptionalSend + OptionalSync {
8
+ pub trait Mutex < T : OptionalSend + ' static > : OptionalSend + OptionalSync {
9
9
/// Handle to an acquired lock, should release it when dropped.
10
10
type Guard < ' a > : DerefMut < Target = T > + OptionalSend + OptionalSync
11
11
where Self : ' a ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ pub trait TypeConfigExt: RaftTypeConfig {
97
97
/// This is just a wrapper of
98
98
/// [`AsyncRuntime::Mutex::new()`](`crate::async_runtime::Mutex::new`).
99
99
fn mutex < T > ( value : T ) -> MutexOf < Self , T >
100
- where T : OptionalSend + OptionalSync {
100
+ where T : OptionalSend {
101
101
MutexOf :: < Self , T > :: new ( value)
102
102
}
103
103
You can’t perform that action at this time.
0 commit comments