File tree Expand file tree Collapse file tree 3 files changed +0
-3
lines changed
Expand file tree Collapse file tree 3 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ unsafe impl<T: Send> Send for Queue<T> { }
8181unsafe impl < T : Send > Sync for Queue < T > { }
8282
8383impl < 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 ( ) ) ,
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments