Skip to content

Commit

Permalink
der: variable name fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed May 8, 2022
1 parent 2d43fe8 commit 911bfc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions der/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ pub trait Encode {
buf.reserve(expected_len);
buf.extend(iter::repeat(0).take(expected_len));

let mut encoder = SliceWriter::new(buf);
self.encode(&mut encoder)?;
let actual_len = encoder.finish()?.len();
let mut writer = SliceWriter::new(buf);
self.encode(&mut writer)?;
let actual_len = writer.finish()?.len();

if expected_len != actual_len {
return Err(ErrorKind::Incomplete {
Expand Down

0 comments on commit 911bfc4

Please sign in to comment.