Fix all clippy warnings in the Rust backend

Addresses all 31 warnings emitted by cargo clippy: redundant field
names in struct initialisers, unnecessary unwrap after is_some checks
(replaced with if-let), needless borrows, filter+next replaced with
find, iter().count() replaced with len(), clone on Copy type, and
manual match-to-Option replaced with .ok().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-27 13:48:33 -04:00
co-authored by Claude Sonnet 4.6
parent 44d593fccc
commit cb2b3c6af7
10 changed files with 40 additions and 51 deletions
+4 -4
View File
@@ -25,10 +25,10 @@ impl Device {
last_seen: DateTime<Utc>,
) -> Self {
Self {
mac_address: mac_address,
ipv4_address: ipv4_address,
vendor: vendor,
last_seen: last_seen,
mac_address,
ipv4_address,
vendor,
last_seen,
is_registered: false,
owner: "".to_string(),
device_type: "".to_string(),