Skip to content

Commit

Permalink
⚡️ Avoid zbus::Address <-> String conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
jokeyrhyme committed Dec 25, 2024
1 parent da03815 commit c832678
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bin/busd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use tokio::{select, signal::unix::SignalKind};
use tracing::error;
#[cfg(unix)]
use tracing::{info, warn};
use zbus::Address;

use busd::bus;

Expand Down Expand Up @@ -63,7 +62,7 @@ async fn main() -> Result<()> {
None => default_address(),
};

let mut bus = bus::Bus::for_address(&format!("{address}")).await?;
let mut bus = bus::Bus::for_address(&address).await?;

#[cfg(unix)]
if let Some(fd) = args.ready_fd {
Expand Down

0 comments on commit c832678

Please sign in to comment.