diff options
author | Andrew Gallant <jamslam@gmail.com> | 2019-06-26 16:47:33 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-06-26 16:47:33 -0400 |
commit | b93762ea7a397b54e9ccf589a45a2c6ad91bc390 (patch) | |
tree | 54152ae9fb21c14f95ceefcb35e2d5b2f86295b1 /grep | |
parent | 34677d262246462ce3027ee57be1869a9dc7730a (diff) |
bstr: update everything to bstr 0.2
Diffstat (limited to 'grep')
-rw-r--r-- | grep/examples/simplegrep.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grep/examples/simplegrep.rs b/grep/examples/simplegrep.rs index 85e2f778..37b6a0c4 100644 --- a/grep/examples/simplegrep.rs +++ b/grep/examples/simplegrep.rs @@ -21,7 +21,7 @@ fn main() { } } -fn try_main() -> Result<(), Box<Error>> { +fn try_main() -> Result<(), Box<dyn Error>> { let mut args: Vec<OsString> = env::args_os().collect(); if args.len() < 2 { return Err("Usage: simplegrep <pattern> [<path> ...]".into()); @@ -32,7 +32,7 @@ fn try_main() -> Result<(), Box<Error>> { search(cli::pattern_from_os(&args[1])?, &args[2..]) } -fn search(pattern: &str, paths: &[OsString]) -> Result<(), Box<Error>> { +fn search(pattern: &str, paths: &[OsString]) -> Result<(), Box<dyn Error>> { let matcher = RegexMatcher::new_line_matcher(&pattern)?; let mut searcher = SearcherBuilder::new() .binary_detection(BinaryDetection::quit(b'\x00')) |