Skip to content

Commit

Permalink
Remove #[allow(clippy::new_ret_no_self)]
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored and cramertj committed Jan 25, 2019
1 parent 53983b0 commit ebbc6be
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion futures-channel/src/mpsc/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ unsafe impl<T: Send> Send for Queue<T> { }
unsafe impl<T: Send> Sync for Queue<T> { }

impl<T> Node<T> {
#[allow(clippy::new_ret_no_self)]
unsafe fn new(v: Option<T>) -> *mut Node<T> {
Box::into_raw(Box::new(Node {
next: AtomicPtr::new(ptr::null_mut()),
Expand Down
1 change: 0 additions & 1 deletion futures-executor/src/thread_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ impl ThreadPool {
/// See documentation for the methods in
/// [`ThreadPoolBuilder`](ThreadPoolBuilder) for details on the default
/// configuration.
#[allow(clippy::new_ret_no_self)]
pub fn new() -> Result<ThreadPool, io::Error> {
ThreadPoolBuilder::new().create()
}
Expand Down
1 change: 0 additions & 1 deletion futures-util/src/lock/bilock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ impl<T> BiLock<T> {
/// will only be available through `Pin<&mut T>` (not `&mut T`) unless `T` is `Unpin`.
/// Similarly, reuniting the lock and extracting the inner value is only
/// possible when `T` is `Unpin`.
#[allow(clippy::new_ret_no_self)]
pub fn new(t: T) -> (BiLock<T>, BiLock<T>) {
let arc = Arc::new(Inner {
state: AtomicUsize::new(0),
Expand Down

0 comments on commit ebbc6be

Please sign in to comment.