From e85513e1c8cb8ee68ea4e036fa824e8e2b5c079f Mon Sep 17 00:00:00 2001 From: "Franz Heinzmann (Frando)" Date: Thu, 16 May 2024 12:12:48 +0200 Subject: [PATCH] chore: clippy --- iroh/src/node.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iroh/src/node.rs b/iroh/src/node.rs index 6d8e217adb..6724ce3f6c 100644 --- a/iroh/src/node.rs +++ b/iroh/src/node.rs @@ -508,7 +508,7 @@ mod tests { // check that a new default author is created if the default author file is deleted // manually. let default_author = { - tokio::fs::remove_file(IrohPaths::DefaultAuthor.with_root(&iroh_root)).await?; + tokio::fs::remove_file(IrohPaths::DefaultAuthor.with_root(iroh_root)).await?; let iroh = Node::persistent(iroh_root).await?.spawn().await?; let author = iroh.authors.default().await?; assert!(author != default_author); @@ -521,14 +521,14 @@ mod tests { // check that the node fails to start if the default author is missing from the docs store. { let mut docs_store = iroh_docs::store::fs::Store::persistent( - IrohPaths::DocsDatabase.with_root(&iroh_root), + IrohPaths::DocsDatabase.with_root(iroh_root), )?; docs_store.delete_author(default_author)?; docs_store.flush()?; drop(docs_store); let iroh = Node::persistent(iroh_root).await?.spawn().await; assert!(iroh.is_err()); - tokio::fs::remove_file(IrohPaths::DefaultAuthor.with_root(&iroh_root)).await?; + tokio::fs::remove_file(IrohPaths::DefaultAuthor.with_root(iroh_root)).await?; let iroh = Node::persistent(iroh_root).await?.spawn().await; assert!(iroh.is_ok()); }