Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
39555 committed Sep 25, 2024
1 parent f44588a commit 5b1effb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brush-shell/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl CommandLineArgs {
fn parse_from<'a>(itr: impl IntoIterator<Item = &'a String>) -> Self {
let (mut this, script_args) = brush_core::builtins::parse_known::<CommandLineArgs, _>(itr);
// if we have `--` and unparsed raw args than
script_args.map(|mut args| {
if let Some(mut args) = script_args {
// if script_path has not been parsed yet
// use the first script_args[0] (it is `--`)
// as script_path
Expand All @@ -40,7 +40,7 @@ impl CommandLineArgs {
this.script_args
.extend(first.into_iter().chain(args).cloned());
}
});
}
this
}
}
Expand Down

0 comments on commit 5b1effb

Please sign in to comment.