mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +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"))]
|
#[cfg(any(unix, target_os = "redox"))]
|
||||||
mod platform {
|
mod platform {
|
||||||
extern crate libc;
|
use libc;
|
||||||
|
|
||||||
#[cfg(not(any(target_os = "android")))]
|
#[cfg(not(any(target_os = "android")))]
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
|
@ -724,7 +724,6 @@ fn test_offset_calculation() {
|
||||||
|
|
||||||
impl<K, V> RawTable<K, V> {
|
impl<K, V> RawTable<K, V> {
|
||||||
unsafe fn new_uninitialized(capacity: usize) -> RawTable<K, V> {
|
unsafe fn new_uninitialized(capacity: usize) -> RawTable<K, V> {
|
||||||
extern crate libc;
|
|
||||||
if let Ok(table) = Self::try_new_uninitialized(capacity) {
|
if let Ok(table) = Self::try_new_uninitialized(capacity) {
|
||||||
table
|
table
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -63,7 +63,6 @@ use layout::traversal::{
|
||||||
};
|
};
|
||||||
use layout::wrapper::LayoutNodeLayoutData;
|
use layout::wrapper::LayoutNodeLayoutData;
|
||||||
use layout_traits::LayoutThreadFactory;
|
use layout_traits::LayoutThreadFactory;
|
||||||
use libc::c_void;
|
|
||||||
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
||||||
use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
|
use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
|
||||||
use msg::constellation_msg::{
|
use msg::constellation_msg::{
|
||||||
|
|
|
@ -48,7 +48,6 @@ use layout::query::{
|
||||||
use layout::traversal::RecalcStyle;
|
use layout::traversal::RecalcStyle;
|
||||||
use layout::{BoxTree, FragmentTree};
|
use layout::{BoxTree, FragmentTree};
|
||||||
use layout_traits::LayoutThreadFactory;
|
use layout_traits::LayoutThreadFactory;
|
||||||
use libc::c_void;
|
|
||||||
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
||||||
use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
|
use metrics::{PaintTimeMetrics, ProfilerMetadataFactory, ProgressiveWebMetric};
|
||||||
use msg::constellation_msg::{
|
use msg::constellation_msg::{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue