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:
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;
|
*write_lock!(client.$property) = new_path_map;
|
||||||
{
|
let $state_client = &client;
|
||||||
let $state_client = &client;
|
$state_update;
|
||||||
$state_update;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
});
|
});
|
||||||
|
@ -160,10 +158,8 @@ 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(())
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue