mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +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,11 +131,9 @@ impl Client {
|
|||
}
|
||||
}
|
||||
*write_lock!(client.$property) = new_path_map;
|
||||
{
|
||||
let $state_client = &client;
|
||||
$state_update;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
@ -160,11 +158,9 @@ impl Client {
|
|||
if !read_lock!(client.$containing_list).contains_key(&path) {
|
||||
break;
|
||||
}
|
||||
{
|
||||
let $inner_client = &client;
|
||||
$state_update;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue