chore: Fix remaining clippy lints

This commit is contained in:
Victoria Brekenfeld 2026-03-20 13:40:06 +01:00 committed by Victoria Brekenfeld
parent 0a016991a4
commit 5216eb50ba
14 changed files with 64 additions and 50 deletions

View file

@ -812,7 +812,7 @@ impl CosmicMapped {
scale.x,
0.8,
) {
Ok(element) => vec![CosmicMappedRenderElement::from(element).into()],
Ok(element) => vec![CosmicMappedRenderElement::from(element)],
Err(err) => {
debug!(?err, "Error rendering debug overlay.");
Vec::new()

View file

@ -154,6 +154,8 @@ impl Focus {
}
}
/// # Safety
/// `value` must be in the range of `Focus`
pub unsafe fn from_u8(value: u8) -> Option<Focus> {
match value {
0 => None,