Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some unused_mut/unused_result warnings #2323

Merged
merged 1 commit into from May 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/script/dom/bindings/trace.rs
Expand Up @@ -138,8 +138,7 @@ impl<T> DerefMut<T> for Traceable<T> {

impl<S: Encoder<E>, E, T: Encodable<S, E>> Encodable<S, E> for Traceable<RefCell<T>> {
fn encode(&self, s: &mut S) -> Result<(), E> {
self.borrow().encode(s);
Ok(())
self.borrow().encode(s)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/script/dom/domimplementation.rs
Expand Up @@ -82,7 +82,7 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
// Step 1.
let mut doc = Document::new(&win.root_ref(), None, NonHTMLDocument, None).root();
// Step 2-3.
let mut maybe_elem = if qname.is_empty() {
let maybe_elem = if qname.is_empty() {
None
} else {
match doc.CreateElementNS(namespace, qname) {
Expand Down
3 changes: 1 addition & 2 deletions src/components/script/layout_interface.rs
Expand Up @@ -73,8 +73,7 @@ impl<S: Encoder<E>, E> Encodable<S, E> for TrustedNodeAddress {
let node = addr as *Node as *mut Node;
unsafe {
JS::from_raw(node).encode(s)
};
Ok(())
}
}
}

Expand Down