Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: remove type annotation from if-let pattern

Louis Beaumonta2524d53cf20
diff --git a/crates/screenpipe-accessibility/src/tree/linux.rs b/crates/screenpipe-accessibility/src/tree/linux.rs
index c50f12bc6..9b6dd3810 100644
--- a/crates/screenpipe-accessibility/src/tree/linux.rs
+++ b/crates/screenpipe-accessibility/src/tree/linux.rs
@@ -293,9 +293,9 @@ fn get_accessible_children(conn: &Connection, aref: &AccessibleRef) -> Vec<Acces
&(i,),
) {
// Return type is (so) — bus name + object path
- if let Ok((bus_name, path)): Result<(String, zbus::zvariant::OwnedObjectPath), _> =
- reply.body().deserialize()
- {
+ let deserialized: Result<(String, zbus::zvariant::OwnedObjectPath), _> =
+ reply.body().deserialize();
+ if let Ok((bus_name, path)) = deserialized {
children.push(AccessibleRef {
bus_name,
path: path.to_string(),