Skip to content

Commit 65ca9e9

Browse files
committed
Ignore clippy new_ret_no_self warnings
1 parent 05f5e3c commit 65ca9e9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

futures-channel/src/mpsc/queue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ unsafe impl<T: Send> Send for Queue<T> { }
8080
unsafe impl<T: Send> Sync for Queue<T> { }
8181

8282
impl<T> Node<T> {
83+
#[allow(clippy::new_ret_no_self)]
8384
unsafe fn new(v: Option<T>) -> *mut Node<T> {
8485
Box::into_raw(Box::new(Node {
8586
next: AtomicPtr::new(ptr::null_mut()),

futures-executor/src/thread_pool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ impl ThreadPool {
7272
/// See documentation for the methods in
7373
/// [`ThreadPoolBuilder`](ThreadPoolBuilder) for details on the default
7474
/// configuration.
75+
#[allow(clippy::new_ret_no_self)]
7576
pub fn new() -> Result<ThreadPool, io::Error> {
7677
ThreadPoolBuilder::new().create()
7778
}

futures-util/src/lock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl<T> BiLock<T> {
6060
/// will only be available through `Pin<&mut T>` (not `&mut T`) unless `T` is `Unpin`.
6161
/// Similarly, reuniting the lock and extracting the inner value is only
6262
/// possible when `T` is `Unpin`.
63+
#[allow(clippy::new_ret_no_self)]
6364
pub fn new(t: T) -> (BiLock<T>, BiLock<T>) {
6465
let arc = Arc::new(Inner {
6566
state: AtomicUsize::new(0),

0 commit comments

Comments
 (0)