File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
## 2.10.0
6
6
7
+ - Relax bound (` F: Fn -> FnOnce ` ) on ` {Arbiter, System}::with_tokio_rt() ` functions.
7
8
- Update ` tokio-uring ` dependency to ` 0.5 ` .
8
9
- Minimum supported Rust version (MSRV) is now 1.70.
9
10
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl Arbiter {
109
109
#[ cfg( not( all( target_os = "linux" , feature = "io-uring" ) ) ) ]
110
110
pub fn with_tokio_rt < F > ( runtime_factory : F ) -> Arbiter
111
111
where
112
- F : Fn ( ) -> tokio:: runtime:: Runtime + Send + ' static ,
112
+ F : FnOnce ( ) -> tokio:: runtime:: Runtime + Send + ' static ,
113
113
{
114
114
let sys = System :: current ( ) ;
115
115
let system_id = sys. id ( ) ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl System {
48
48
/// [tokio-runtime]: tokio::runtime::Runtime
49
49
pub fn with_tokio_rt < F > ( runtime_factory : F ) -> SystemRunner
50
50
where
51
- F : Fn ( ) -> tokio:: runtime:: Runtime ,
51
+ F : FnOnce ( ) -> tokio:: runtime:: Runtime ,
52
52
{
53
53
let ( stop_tx, stop_rx) = oneshot:: channel ( ) ;
54
54
let ( sys_tx, sys_rx) = mpsc:: unbounded_channel ( ) ;
@@ -87,7 +87,7 @@ impl System {
87
87
#[ doc( hidden) ]
88
88
pub fn with_tokio_rt < F > ( _: F ) -> SystemRunner
89
89
where
90
- F : Fn ( ) -> tokio:: runtime:: Runtime ,
90
+ F : FnOnce ( ) -> tokio:: runtime:: Runtime ,
91
91
{
92
92
unimplemented ! ( "System::with_tokio_rt is not implemented for io-uring feature yet" )
93
93
}
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ all_crate_features := if os() == "linux" {
27
27
" --features='" + non_linux_all_features_list + " '"
28
28
}
29
29
30
+ # Run Clippy over workspace.
31
+ clippy toolchain = " ":
32
+ cargo {{ toolchain }} clippy --workspace --all-targets {{ all_crate_features }}
33
+
30
34
# Test workspace code.
31
35
[macos , windows ]
32
36
test toolchain = " ":
You can’t perform that action at this time.
0 commit comments