From 4830a02a7593edf9ed41b5a954aec2bdaef8596b Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Wed, 26 Aug 2026 14:21:42 -0400 Subject: [PATCH] fix(home): rustdoc lint See ``` warning: redundant explicit link target --> crates/home/src/lib.rs:81:42 | 81 | /// For more details, see [`cargo_home`](fn.cargo_home.html). | ------------ ^^^^^^^^^^^^^^^^^^ explicit target is redundant | | | because label contains path that resolves to same destination | = note: when a link's destination is not specified, the label is used to resolve intra-doc links = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default help: remove explicit link target | 81 - /// For more details, see [`cargo_home`](fn.cargo_home.html). 81 + /// For more details, see [`cargo_home`]. | warning: redundant explicit link target --> crates/home/src/lib.rs:118:43 | 118 | /// For more details, see [`rustup_home`](fn.rustup_home.html). | ------------- ^^^^^^^^^^^^^^^^^^^ explicit target is redundant | | | because label contains path that resolves to same destination | = note: when a link's destination is not specified, the label is used to resolve intra-doc links help: remove explicit link target | 118 - /// For more details, see [`rustup_home`](fn.rustup_home.html). 118 + /// For more details, see [`rustup_home`]. | error: `home` (lib doc) generated 2 warnings ``` --- Cargo.lock | 2 +- crates/home/Cargo.toml | 2 +- crates/home/src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index efc31048fdb..fd6c476e195 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2592,7 +2592,7 @@ dependencies = [ [[package]] name = "home" -version = "0.5.13" +version = "0.5.14" [[package]] name = "html-escape" diff --git a/crates/home/Cargo.toml b/crates/home/Cargo.toml index 11e22a76297..c5a6e021923 100644 --- a/crates/home/Cargo.toml +++ b/crates/home/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "home" -version = "0.5.13" +version = "0.5.14" authors = ["Brian Anderson "] rust-version.workspace = true documentation = "https://docs.rs/home" diff --git a/crates/home/src/lib.rs b/crates/home/src/lib.rs index 1ab9e5d6a31..2b03686302d 100644 --- a/crates/home/src/lib.rs +++ b/crates/home/src/lib.rs @@ -78,7 +78,7 @@ pub fn cargo_home() -> io::Result { } /// Returns the storage directory used by Cargo within `cwd`. -/// For more details, see [`cargo_home`](fn.cargo_home.html). +/// For more details, see [`cargo_home`]. pub fn cargo_home_with_cwd(cwd: &Path) -> io::Result { env::cargo_home_with_cwd_env(&env::OS_ENV, cwd) } @@ -115,7 +115,7 @@ pub fn rustup_home() -> io::Result { } /// Returns the storage directory used by rustup within `cwd`. -/// For more details, see [`rustup_home`](fn.rustup_home.html). +/// For more details, see [`rustup_home`]. pub fn rustup_home_with_cwd(cwd: &Path) -> io::Result { env::rustup_home_with_cwd_env(&env::OS_ENV, cwd) }