mirror of
https://github.com/servo/servo.git
synced 2025-07-30 02:30:21 +01:00
Fix some build warnings
This commit is contained in:
parent
16727661e5
commit
7fdf806874
4 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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::{
|
||||
|
|
|
@ -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::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue