Fix used_underscore_binding in rustc_serialize
This commit is contained in:
parent
690332a251
commit
4085b48dfd
@ -437,10 +437,10 @@ impl IntEncodedWithFixedSize {
|
|||||||
impl Encodable<FileEncoder> for IntEncodedWithFixedSize {
|
impl Encodable<FileEncoder> for IntEncodedWithFixedSize {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn encode(&self, e: &mut FileEncoder) {
|
fn encode(&self, e: &mut FileEncoder) {
|
||||||
let _start_pos = e.position();
|
let start_pos = e.position();
|
||||||
e.write_array(self.0.to_le_bytes());
|
e.write_array(self.0.to_le_bytes());
|
||||||
let _end_pos = e.position();
|
let end_pos = e.position();
|
||||||
debug_assert_eq!((_end_pos - _start_pos), IntEncodedWithFixedSize::ENCODED_SIZE);
|
debug_assert_eq!((end_pos - start_pos), IntEncodedWithFixedSize::ENCODED_SIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user