Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Jun 28, 2018
1 parent f0ddd17 commit 4d6fba4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions grep-regex/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ impl ConfiguredHIR {
mut f: F,
) -> Result<ConfiguredHIR, Error>
{
let mut chir = self.pattern_to_hir(&f(&self.expr.to_string()))?;
chir.original = self.original.clone();
Ok(chir)
self.pattern_to_hir(&f(&self.expr.to_string()))
}

fn pattern_to_regex(&self, pattern: &str) -> Result<Regex, Error> {
Expand Down

0 comments on commit 4d6fba4

Please sign in to comment.