From e611904a1f710e8e1e684acda3f69d98cb313d97 Mon Sep 17 00:00:00 2001 From: "Franz Heinzmann (Frando)" Date: Thu, 16 May 2024 12:08:40 +0200 Subject: [PATCH] chore: clippy & doclinks --- iroh/src/util/fs.rs | 2 +- iroh/src/util/path.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iroh/src/util/fs.rs b/iroh/src/util/fs.rs index f945a4f837..d95cdf0629 100644 --- a/iroh/src/util/fs.rs +++ b/iroh/src/util/fs.rs @@ -138,7 +138,7 @@ pub async fn load_default_author( if path.exists() { let data = tokio::fs::read_to_string(&path).await?; let author_id = AuthorId::from_str(&data)?; - if !docs_store.get_author(&author_id)?.is_some() { + if docs_store.get_author(&author_id)?.is_none() { bail!("The default author is missing from the docs store. To recover, delete the file `{}`. Then iroh will create a new default author.", path.to_string_lossy()) } Ok(author_id) diff --git a/iroh/src/util/path.rs b/iroh/src/util/path.rs index 531c295608..f7ee91af40 100644 --- a/iroh/src/util/path.rs +++ b/iroh/src/util/path.rs @@ -24,7 +24,7 @@ pub enum IrohPaths { #[strum(serialize = "rpc.lock")] /// Path to RPC lock file, containing the RPC port if running. RpcLock, - /// Path to the [`AuthorId`] of the node's default author + /// Path to the [`iroh_docs::AuthorId`] of the node's default author #[strum(serialize = "default-author")] DefaultAuthor, }