File tree 3 files changed +0
-3
lines changed
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> { }
81
81
unsafe impl < T : Send > Sync for Queue < T > { }
82
82
83
83
impl < T > Node < T > {
84
- #[ allow( clippy:: new_ret_no_self) ]
85
84
unsafe fn new ( v : Option < T > ) -> * mut Node < T > {
86
85
Box :: into_raw ( Box :: new ( Node {
87
86
next : AtomicPtr :: new ( ptr:: null_mut ( ) ) ,
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ impl ThreadPool {
72
72
/// See documentation for the methods in
73
73
/// [`ThreadPoolBuilder`](ThreadPoolBuilder) for details on the default
74
74
/// configuration.
75
- #[ allow( clippy:: new_ret_no_self) ]
76
75
pub fn new ( ) -> Result < ThreadPool , io:: Error > {
77
76
ThreadPoolBuilder :: new ( ) . create ( )
78
77
}
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ impl<T> BiLock<T> {
59
59
/// will only be available through `Pin<&mut T>` (not `&mut T`) unless `T` is `Unpin`.
60
60
/// Similarly, reuniting the lock and extracting the inner value is only
61
61
/// possible when `T` is `Unpin`.
62
- #[ allow( clippy:: new_ret_no_self) ]
63
62
pub fn new ( t : T ) -> ( BiLock < T > , BiLock < T > ) {
64
63
let arc = Arc :: new ( Inner {
65
64
state : AtomicUsize :: new ( 0 ) ,
You can’t perform that action at this time.
0 commit comments