File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
futures-util/src/future/future Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1515 )
1616) ) ]
1717#![ allow( clippy:: if_then_panic) ]
18+
1819#[ cfg( not( feature = "std" ) ) ]
1920compile_error ! (
2021 "`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
140140 /// can change the strong count at any time, including potentially between calling this method
141141 /// and acting on the result.
142142 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)
144144 }
145145
146146 /// Gets the number of weak pointers to this allocation.
@@ -153,7 +153,7 @@ where
153153 /// can change the weak count at any time, including potentially between calling this method
154154 /// and acting on the result.
155155 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)
157157 }
158158}
159159
You can’t perform that action at this time.
0 commit comments