Fix some unused_mut/unused_result warnings

This commit is contained in:
Manish Goregaokar 2014-05-05 15:28:29 +05:30
parent 310d2a19bb
commit 1008a536a7
3 changed files with 3 additions and 5 deletions

View file

@ -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)
}
}