Skip to content

Commit

Permalink
always pass the largest possible input to consume
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Sep 7, 2015
1 parent b90c9ea commit 9f5128c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub trait Consumer {

//println!("full:\n{}", acc.to_hex(8));
//println!("truncated:\n{}", (&acc[0..needed]).to_hex(16));
match self.consume(&acc[0..needed]) {
match self.consume(&acc[0..]) {
ConsumerError(e) => {
//println!("consumer error, stopping: {}", e);
err = Some(e);
Expand Down

0 comments on commit 9f5128c

Please sign in to comment.