Skip to content

Commit ebbc6be

Browse files
taiki-ecramertj
authored andcommitted
Remove #[allow(clippy::new_ret_no_self)]
1 parent 53983b0 commit ebbc6be

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

futures-channel/src/mpsc/queue.rs

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ unsafe impl<T: Send> Send for Queue<T> { }
8181
unsafe impl<T: Send> Sync for Queue<T> { }
8282

8383
impl<T> Node<T> {
84-
#[allow(clippy::new_ret_no_self)]
8584
unsafe fn new(v: Option<T>) -> *mut Node<T> {
8685
Box::into_raw(Box::new(Node {
8786
next: AtomicPtr::new(ptr::null_mut()),

futures-executor/src/thread_pool.rs

-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ 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)]
7675
pub fn new() -> Result<ThreadPool, io::Error> {
7776
ThreadPoolBuilder::new().create()
7877
}

futures-util/src/lock/bilock.rs

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

0 commit comments

Comments
 (0)