Skip to content

Commit

Permalink
Fix clippy warning for result? (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavemarshall authored Jan 21, 2025
1 parent 748c11c commit 5fa55d7
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 5fa55d7

Please sign in to comment.