mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
clippy: fix warnings in various modules in components (#31568)
* clippy: fix warnings in various modules in components * fix: unit tests * fix: build on android * fix: all samplers use new_boxed
This commit is contained in:
parent
19f1f2a8f4
commit
3a5ca785d3
24 changed files with 107 additions and 118 deletions
|
@ -13,9 +13,7 @@ pub use crate::platform::*;
|
|||
mod platform {
|
||||
use std::os::raw::c_void;
|
||||
|
||||
use jemallocator;
|
||||
|
||||
pub use self::jemallocator::Jemalloc as Allocator;
|
||||
pub use jemallocator::Jemalloc as Allocator;
|
||||
|
||||
/// Get the size of a heap block.
|
||||
pub unsafe extern "C" fn usable_size(ptr: *const c_void) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue