mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 08:34:21 +02:00
clippy fixes
This commit is contained in:
parent
b3dbfe58e7
commit
eeb6efb5f7
2 changed files with 2 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ impl DeviceState {
|
|||
if let Some(version) = json["StatusFWR"]["Version"].as_str() {
|
||||
self.firmware = version.into();
|
||||
if let Some(version) = version
|
||||
.rfind(".")
|
||||
.rfind('.')
|
||||
.map(|index| &version[0..index])
|
||||
.and_then(|s| s.parse().ok())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue