Skip to content

Commit

Permalink
Merge pull request rust-bakery#60 from badboy/patch-1
Browse files Browse the repository at this point in the history
Return a byte slice
  • Loading branch information
Geal committed Jul 15, 2015
2 parents 7371ded + 29f516a commit 67c81c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ macro_rules! filter(
} else if found {
$crate::IResult::Done(&$input[index..], &$input[0..index])
} else {
$crate::IResult::Done(b"", $input)
$crate::IResult::Done(&b""[..], $input)
}
}
);
Expand Down

0 comments on commit 67c81c6

Please sign in to comment.