diff options
author | Andrew Gallant <jamslam@gmail.com> | 2018-09-07 11:57:07 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-09-07 12:06:05 -0400 |
commit | 54b3e9eb10bebb33de799bc14616a0d72165583a (patch) | |
tree | 510401c43b716687589106dd268496c5b8a33781 /grep-searcher | |
parent | 56e8864426229de7b181c141baddf788c22b4925 (diff) |
grep-printer: delete unused code
Diffstat (limited to 'grep-searcher')
-rw-r--r-- | grep-searcher/src/lib.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/grep-searcher/src/lib.rs b/grep-searcher/src/lib.rs index 4874b996..f3ec02f2 100644 --- a/grep-searcher/src/lib.rs +++ b/grep-searcher/src/lib.rs @@ -74,14 +74,11 @@ fn example() -> Result<(), Box<Error>> { let mut matches: Vec<(u64, String)> = vec![]; Searcher::new().search_slice(&matcher, SHERLOCK, UTF8(|lnum, line| { // We are guaranteed to find a match, so the unwrap is OK. - eprintln!("LINE: {:?}", line); let mymatch = matcher.find(line.as_bytes())?.unwrap(); matches.push((lnum, line[mymatch].to_string())); Ok(true) }))?; - eprintln!("MATCHES: {:?}", matches); - assert_eq!(matches.len(), 2); assert_eq!( matches[0], |