Skip to content

Commit 43d80e4

Browse files
committed
Fix clippy warnings
Report: ``` > cargo clippy Compiling framework_lib v0.1.0 (/var/home/zoid/clone/framework-system/framework_lib) warning: unneeded `return` statement --> framework_lib/src/commandline/mod.rs:459:5 | 459 | return 1; | ^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default = help: remove `return` ``` Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 423015c commit 43d80e4

File tree

1 file changed

+2
-1
lines changed
  • framework_lib/src/commandline

1 file changed

+2
-1
lines changed

framework_lib/src/commandline/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ fn compare_version(device: Option<HardwareDeviceType>, version: String, ec: &Cro
456456
}
457457
}
458458
}
459-
return 1;
459+
460+
1
460461
}
461462

462463
pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {

0 commit comments

Comments
 (0)