mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 11:24:24 +02:00
refactor: remove unnecessary blocks
This commit is contained in:
parent
a9cd5f5489
commit
de479f167c
1 changed files with 4 additions and 8 deletions
|
@ -131,10 +131,8 @@ impl Client {
|
|||
}
|
||||
}
|
||||
*write_lock!(client.$property) = new_path_map;
|
||||
{
|
||||
let $state_client = &client;
|
||||
$state_update;
|
||||
}
|
||||
let $state_client = &client;
|
||||
$state_update;
|
||||
}
|
||||
Ok(())
|
||||
});
|
||||
|
@ -160,10 +158,8 @@ impl Client {
|
|||
if !read_lock!(client.$containing_list).contains_key(&path) {
|
||||
break;
|
||||
}
|
||||
{
|
||||
let $inner_client = &client;
|
||||
$state_update;
|
||||
}
|
||||
let $inner_client = &client;
|
||||
$state_update;
|
||||
}
|
||||
Ok(())
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue