mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
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:
co-authored by
Claude Sonnet 4.6
parent
44d593fccc
commit
cb2b3c6af7
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user