mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-17 00:00:14 +02:00
Address various clippy warnings (#528)
This commit is contained in:
@@ -24,8 +24,7 @@ unsafe impl GlobalAlloc for Odd {
|
||||
};
|
||||
let ptr = System.alloc(new_layout);
|
||||
if !ptr.is_null() {
|
||||
let ptr = ptr.offset(1);
|
||||
ptr
|
||||
ptr.offset(1)
|
||||
} else {
|
||||
ptr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user