mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 16:44:11 +02:00
clippy fixes
This commit is contained in:
parent
b3dbfe58e7
commit
eeb6efb5f7
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
# `nix develop`
|
# `nix develop`
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [rustc cargo bacon cargo-edit cargo-outdated];
|
nativeBuildInputs = with pkgs; [rustc cargo bacon cargo-edit cargo-outdated clippy];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ impl DeviceState {
|
||||||
if let Some(version) = json["StatusFWR"]["Version"].as_str() {
|
if let Some(version) = json["StatusFWR"]["Version"].as_str() {
|
||||||
self.firmware = version.into();
|
self.firmware = version.into();
|
||||||
if let Some(version) = version
|
if let Some(version) = version
|
||||||
.rfind(".")
|
.rfind('.')
|
||||||
.map(|index| &version[0..index])
|
.map(|index| &version[0..index])
|
||||||
.and_then(|s| s.parse().ok())
|
.and_then(|s| s.parse().ok())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue