relax and de-clutter let_underscore_must_use
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
100c6f572b
commit
23a9055199
9 changed files with 5 additions and 29 deletions
|
@ -132,11 +132,7 @@ impl Services {
|
|||
|
||||
if self.globals.allow_check_for_updates() {
|
||||
let handle = globals::updates::start_check_for_updates_task();
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)] // needed for shutdown
|
||||
{
|
||||
_ = self.globals.updates_handle.lock().await.insert(handle);
|
||||
}
|
||||
_ = self.globals.updates_handle.lock().await.insert(handle);
|
||||
}
|
||||
|
||||
debug_info!("Services startup complete.");
|
||||
|
@ -159,11 +155,7 @@ impl Services {
|
|||
debug!("Waiting for update worker...");
|
||||
if let Some(updates_handle) = self.globals.updates_handle.lock().await.take() {
|
||||
updates_handle.abort();
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
{
|
||||
_ = updates_handle.await;
|
||||
}
|
||||
_ = updates_handle.await;
|
||||
}
|
||||
|
||||
for (name, service) in &self.service {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue