Fix some build warnings

This commit is contained in:
Martin Robinson 2023-03-27 14:58:44 +02:00
parent 16727661e5
commit 7fdf806874
4 changed files with 1 additions and 4 deletions

View file

@ -27,7 +27,7 @@ pub use self::platform::{alloc, dealloc, realloc};
#[cfg(any(unix, target_os = "redox"))]
mod platform {
extern crate libc;
use libc;
#[cfg(not(any(target_os = "android")))]
use std::ptr;

View file

@ -724,7 +724,6 @@ fn test_offset_calculation() {
impl<K, V> RawTable<K, V> {
unsafe fn new_uninitialized(capacity: usize) -> RawTable<K, V> {
extern crate libc;
if let Ok(table) = Self::try_new_uninitialized(capacity) {
table
} else {

View file

@ -63,7 +63,6 @@ use layout::traversal::{
};
use layout::wrapper::LayoutNodeLayoutData;
use layout_traits::LayoutThreadFactory;
use libc::c_void;
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
use msg::constellation_msg::{

View file

@ -48,7 +48,6 @@ use layout::query::{
use layout::traversal::RecalcStyle;
use layout::{BoxTree, FragmentTree};
use layout_traits::LayoutThreadFactory;
use libc::c_void;
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
use msg::constellation_msg::{