Fix clippy warnings

This commit is contained in:
2025-08-14 23:19:40 -03:00
parent 6dde25aa72
commit f4f842e3c8
+1 -3
View File
@@ -135,7 +135,6 @@ impl<'a> Object<'a> for User {
} }
pub struct NewUserIncident { pub struct NewUserIncident {
pub incident: UserIncident,
pub counting_incidents: usize, pub counting_incidents: usize,
pub is_first_incident: bool, pub is_first_incident: bool,
} }
@@ -246,9 +245,8 @@ impl User {
incident.insert(session).await?; incident.insert(session).await?;
Ok(NewUserIncident { Ok(NewUserIncident {
incident,
counting_incidents, counting_incidents,
is_first_incident: incidents.len() == 0, is_first_incident: incidents.is_empty(),
}) })
} }
} }