mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: Clippy fixes
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user