styling fix and clippy fixes

This commit is contained in:
Samuel Onoja committed 2026-10-01 08:59:00 +01:00
1 parent 1364ff62b8
commit 4137f787bf
17 files changed
+123 -75

No files matched your search

+2 -3
View File
@@ -242,12 +242,11 @@ impl Ferese {
scale,
cursor.map(|rect| (&*self, rect)),
)
} else if let Some(mut backend) = self.direct_backend.take() {
} else {
let mut backend = self.direct_backend.take()?;
let result = backend.capture_window_frame(self, &window, &output, cursor);
self.direct_backend = Some(backend);
result
} else {
return None;
};
let pixels = result.ok()?;
if let Some(toplevel) = window.toplevel() {