diff --git a/iroh/examples/local_node_discovery.rs b/iroh/examples/local_node_discovery.rs index 445b2c9aeba..6241d8596f7 100644 --- a/iroh/examples/local_node_discovery.rs +++ b/iroh/examples/local_node_discovery.rs @@ -104,7 +104,7 @@ async fn main() -> anyhow::Result<()> { .await?; show_download_progress(*hash, &mut stream).await?; if let Some(path) = out { - let absolute = std::env::current_dir()?.join(&path); + let absolute = std::env::current_dir()?.join(path); ensure!(!absolute.is_dir(), "output must not be a directory"); tracing::info!( "exporting {hash} to {} -> {}",