Skip to content

Commit

Permalink
chore: clippy & doclinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed May 16, 2024
1 parent 2340bd0 commit e611904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iroh/src/util/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion iroh/src/util/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit e611904

Please sign in to comment.