Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed May 16, 2024
1 parent e611904 commit e85513e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iroh/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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());
}
Expand Down

0 comments on commit e85513e

Please sign in to comment.