Skip to content

Commit

Permalink
Fix clippy warning for result?
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavemarshall committed Jan 21, 2025
1 parent 748c11c commit 8c516dc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2970,10 +2970,7 @@ impl Interpreter {
_ => bail!("internal error: rule's context already popped"),
};

let result = match result {
Ok(r) => r,
Err(e) => return Err(e),
};
let result = result?;

assert_eq!(self.scopes.len(), n_scopes);

Expand Down

0 comments on commit 8c516dc

Please sign in to comment.