Skip to content

Commit

Permalink
clear buffer after each use
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Emann committed Aug 21, 2016
1 parent eb31461 commit fd3cf9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ impl HashIds {
let mut buffer = String::new();
for number in numbers {
write!(buffer, "{:x}", number).unwrap();
result.push_str(&buffer[1..])
result.push_str(&buffer[1..]);
buffer.clear();
}
Some(result)
},
Expand Down

0 comments on commit fd3cf9c

Please sign in to comment.