File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
futures-util/src/future/future Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ pub unsafe trait UnsafeFutureObj<'a, T>: 'a {
148
148
/// provided `*mut (dyn Future<Output = T> + 'a)` into a `Pin<&mut (dyn
149
149
/// Future<Output = T> + 'a)>` and call methods on it, non-reentrantly,
150
150
/// until `UnsafeFutureObj::drop` is called with it.
151
+ #[ allow( clippy:: unnecessary_safety_doc) ]
151
152
fn into_raw ( self ) -> * mut ( dyn Future < Output = T > + ' a ) ;
152
153
153
154
/// Drops the future represented by the given fat pointer.
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ where
138
138
/// This method by itself is safe, but using it correctly requires extra care. Another thread
139
139
/// can change the strong count at any time, including potentially between calling this method
140
140
/// and acting on the result.
141
+ #[ allow( clippy:: unnecessary_safety_doc) ]
141
142
pub fn strong_count ( & self ) -> Option < usize > {
142
143
self . inner . as_ref ( ) . map ( Arc :: strong_count)
143
144
}
@@ -151,6 +152,7 @@ where
151
152
/// This method by itself is safe, but using it correctly requires extra care. Another thread
152
153
/// can change the weak count at any time, including potentially between calling this method
153
154
/// and acting on the result.
155
+ #[ allow( clippy:: unnecessary_safety_doc) ]
154
156
pub fn weak_count ( & self ) -> Option < usize > {
155
157
self . inner . as_ref ( ) . map ( Arc :: weak_count)
156
158
}
You can’t perform that action at this time.
0 commit comments