Add a clippy job to the CI (#163)

* Add clippy CI check

* Fix remaining clippy lints

* Cargo fmt
This commit is contained in:
Alexander Theißen
2021-07-27 15:50:50 +02:00
committed by GitHub
parent b8e6b9e319
commit 72626a566a
6 changed files with 34 additions and 14 deletions
+2 -3
View File
@@ -130,8 +130,7 @@ fn do_main() -> Result<(), Error> {
let mut source_input = source::SourceInput::new(target_dir, wasm_binary);
let source_target_val =
matches.value_of("source_target").unwrap_or_else(|| source::EMSCRIPTEN_TRIPLET);
let source_target_val = matches.value_of("source_target").unwrap_or(source::EMSCRIPTEN_TRIPLET);
if source_target_val == source::UNKNOWN_TRIPLET {
source_input = source_input.unknown()
} else if source_target_val == source::EMSCRIPTEN_TRIPLET {
@@ -194,7 +193,7 @@ fn do_main() -> Result<(), Error> {
matches.is_present("enforce_stack_adjustment"),
matches
.value_of("shrink_stack")
.unwrap_or_else(|| "49152")
.unwrap_or("49152")
.parse()
.expect("New stack size is not valid u32"),
matches.is_present("skip_optimization"),