Skip to content

Commit

Permalink
Fix used_underscore_binding in rustc_serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalrs committed Oct 7, 2024
1 parent 690332a commit 4085b48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_serialize/src/opaque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,10 @@ impl IntEncodedWithFixedSize {
impl Encodable<FileEncoder> for IntEncodedWithFixedSize {
#[inline]
fn encode(&self, e: &mut FileEncoder) {
let _start_pos = e.position();
let start_pos = e.position();
e.write_array(self.0.to_le_bytes());
let _end_pos = e.position();
debug_assert_eq!((_end_pos - _start_pos), IntEncodedWithFixedSize::ENCODED_SIZE);
let end_pos = e.position();
debug_assert_eq!((end_pos - start_pos), IntEncodedWithFixedSize::ENCODED_SIZE);
}
}

Expand Down

0 comments on commit 4085b48

Please sign in to comment.