Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Mar 9, 2023
1 parent b4eb7dc commit 266e420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ impl BrokerDb {
}
Ok(())
}
#[allow(clippy::unused_async)]
#[inline]
async fn register_client(&self, client: Arc<BusRtClient>) -> Result<(), Error> {
// copy name for the announce
Expand Down Expand Up @@ -691,6 +692,7 @@ impl BrokerDb {
Err(Error::not_registered())
}
}
#[allow(clippy::unused_async)]
#[inline]
async fn unregister_client(&self, client: &Arc<BusRtClient>) {
#[cfg(feature = "rpc")]
Expand Down
3 changes: 2 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fn set_verbose_logger(filter: LevelFilter) {
.unwrap();
}

#[allow(clippy::struct_excessive_bools)]
#[derive(Parser)]
struct Opts {
#[clap(
Expand Down Expand Up @@ -125,7 +126,7 @@ async fn terminate(allow_log: bool) {
if allow_log {
trace!("removing sock file {}", f);
}
let _r = std::fs::remove_file(&f);
let _r = std::fs::remove_file(f);
}
if allow_log {
info!("terminating");
Expand Down

0 comments on commit 266e420

Please sign in to comment.