Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
JohnAZoidberg committed Apr 30, 2024
1 parent 423015c commit 43d80e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework_lib/src/commandline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ fn compare_version(device: Option<HardwareDeviceType>, version: String, ec: &Cro
}
}
}
return 1;

1
}

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

0 comments on commit 43d80e4

Please sign in to comment.