1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 18:51:04 +02:00

refactor: remove unnecessary blocks

This commit is contained in:
Reinout Meliesie 2024-06-19 21:48:19 +02:00
parent a9cd5f5489
commit de479f167c
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -131,11 +131,9 @@ impl Client {
} }
} }
*write_lock!(client.$property) = new_path_map; *write_lock!(client.$property) = new_path_map;
{
let $state_client = &client; let $state_client = &client;
$state_update; $state_update;
} }
}
Ok(()) Ok(())
}); });
} }
@ -160,11 +158,9 @@ impl Client {
if !read_lock!(client.$containing_list).contains_key(&path) { if !read_lock!(client.$containing_list).contains_key(&path) {
break; break;
} }
{
let $inner_client = &client; let $inner_client = &client;
$state_update; $state_update;
} }
}
Ok(()) Ok(())
}); });
}; };