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