Skip to content

Commit

Permalink
refactor: remove reference and pass by value
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal authored and sharkdp committed Feb 8, 2025
1 parent 245f1cc commit 874ceca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numbat-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ enum ExecutionMode {
}

impl ExecutionMode {
fn exit_status_in_case_of_error(&self) -> ControlFlow {
fn exit_status_in_case_of_error(self) -> ControlFlow {
if matches!(self, ExecutionMode::Normal) {
ControlFlow::Break(ExitStatus::Error)
} else {
Expand Down

0 comments on commit 874ceca

Please sign in to comment.