File tree 2 files changed +3
-2
lines changed
futures-util/src/future/future
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
)
16
16
) ) ]
17
17
#![ allow( clippy:: if_then_panic) ]
18
+
18
19
#[ cfg( not( feature = "std" ) ) ]
19
20
compile_error ! (
20
21
"`futures-test` must have the `std` feature activated, this is a default-active feature"
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ where
140
140
/// can change the strong count at any time, including potentially between calling this method
141
141
/// and acting on the result.
142
142
pub fn strong_count ( & self ) -> Option < usize > {
143
- self . inner . as_ref ( ) . map ( |arc| Arc :: strong_count ( arc ) )
143
+ self . inner . as_ref ( ) . map ( Arc :: strong_count)
144
144
}
145
145
146
146
/// Gets the number of weak pointers to this allocation.
@@ -153,7 +153,7 @@ where
153
153
/// can change the weak count at any time, including potentially between calling this method
154
154
/// and acting on the result.
155
155
pub fn weak_count ( & self ) -> Option < usize > {
156
- self . inner . as_ref ( ) . map ( |arc| Arc :: weak_count ( arc ) )
156
+ self . inner . as_ref ( ) . map ( Arc :: weak_count)
157
157
}
158
158
}
159
159
You can’t perform that action at this time.
0 commit comments