mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Fix and disable some compile warnings.
This commit is contained in:
parent
eae9b94399
commit
3e3536cf39
6 changed files with 6 additions and 2 deletions
|
@ -13,6 +13,7 @@ use std::ptr;
|
|||
|
||||
pub type Link = Option<FlowRef>;
|
||||
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[deriving(Clone)]
|
||||
pub struct Rawlink {
|
||||
vtable: *(),
|
||||
|
|
|
@ -44,6 +44,7 @@ pub struct CallbackInterface {
|
|||
object: CallbackObject
|
||||
}
|
||||
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[deriving(Clone,Eq,Encodable)]
|
||||
struct CallbackObject {
|
||||
callback: Traceable<*mut JSObject>,
|
||||
|
|
|
@ -412,6 +412,7 @@ pub fn reflect_dom_object<T: Reflectable>
|
|||
Temporary::new(wrap_fn(window.deref().get_cx(), window, obj))
|
||||
}
|
||||
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[deriving(Eq)]
|
||||
pub struct Reflector {
|
||||
pub object: *mut JSObject,
|
||||
|
|
|
@ -15,6 +15,7 @@ use js::rust::with_compartment;
|
|||
use libc::c_void;
|
||||
use std::ptr;
|
||||
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[deriving(Encodable)]
|
||||
pub struct BrowserContext {
|
||||
history: Vec<SessionHistoryEntry>,
|
||||
|
|
|
@ -762,6 +762,6 @@ impl<'a> PrivateXMLHttpRequestHelpers for JSRef<'a, XMLHttpRequest> {
|
|||
}
|
||||
// According to Simon, decode() should never return an error, so unwrap()ing
|
||||
// the result should be fine. XXXManishearth have a closer look at this later
|
||||
encoding.decode(self.response.as_slice(), DecodeReplace).unwrap().to_owned()
|
||||
encoding.decode(self.response.as_slice(), DecodeReplace).unwrap().to_string()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 8545e95c2d33d6a9d01ac04b206459d602f9491e
|
||||
Subproject commit 6b86f1f01ecb4623942369d25e0dd941adb091de
|
Loading…
Add table
Add a link
Reference in a new issue