Skip to content

Commit

Permalink
fix: Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
uncomputable committed Sep 27, 2024
1 parent 7038b41 commit 1db6d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions simpcli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,28 @@ fn main() -> Result<(), String> {
Err(e) => {
eprintln!("Error: {}.", e);
eprintln!();
return invalid_usage(&process_name);
return invalid_usage(process_name);
}
},
None => return invalid_usage(&process_name),
None => return invalid_usage(process_name),
};

if let Command::Help = command {
usage(&process_name);
usage(process_name);
return Ok(());
}

let first_arg = match args.next() {
Some(s) => s,
None => return invalid_usage(&process_name),
None => return invalid_usage(process_name),
};
let _expression = if command.takes_optional_exprname() {
args.next().unwrap_or("main".to_owned())
} else {
String::new()
};
if args.next().is_some() {
invalid_usage(&process_name)?;
invalid_usage(process_name)?;
}

// Execute command
Expand Down
2 changes: 1 addition & 1 deletion simplicity-sys/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ mod test_data {
pub use test_data::*;

#[cfg(all(test, feature = "test-utils"))]
mod tests {
mod test_code {
use super::*;

#[test]
Expand Down

0 comments on commit 1db6d94

Please sign in to comment.