chore: Clippy fixes

This commit is contained in:
Ginger
2026-04-27 16:52:12 -04:00
parent 6b0b8344d4
commit f269fb5cfc
10 changed files with 21 additions and 26 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
use askama::{Template, filters::HtmlSafe};
use validator::{ValidationError, ValidationErrors};
use validator::ValidationErrors;
/// A reusable form component with field validation.
#[derive(Debug, Template)]
+5 -3
View File
@@ -116,9 +116,11 @@ impl DeviceCard {
let display_name = oauth_metadata
.as_ref()
.and_then(|metadata| metadata.client_name.clone())
.or(device
.as_ref()
.and_then(|device| device.display_name.clone()));
.or_else(|| {
device
.as_ref()
.and_then(|device| device.display_name.clone())
});
let avatar_src = oauth_metadata
.as_ref()