From 5900216569d0ed0b9967e930c996644e6b86a53b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 12 Dec 2024 12:46:56 -0600 Subject: [PATCH] fix(derive): Update link for derive attributes Fixes #5842 --- clap_derive/src/item.rs | 12 ++++++------ tests/derive_ui/default_values_t_invalid.stderr | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clap_derive/src/item.rs b/clap_derive/src/item.rs index e48b200f704..ab32918e5f4 100644 --- a/clap_derive/src/item.rs +++ b/clap_derive/src/item.rs @@ -561,7 +561,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let val = if let Some(expr) = &attr.value { @@ -611,7 +611,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let expr = attr.value_or_abort()?; @@ -622,7 +622,7 @@ impl Item { "#[arg(default_values_t)] can be used only on Vec types\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") } let inner_type = inner_type(ty); @@ -689,7 +689,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let val = if let Some(expr) = &attr.value { @@ -739,7 +739,7 @@ impl Item { only on field level\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") }; let expr = attr.value_or_abort()?; @@ -750,7 +750,7 @@ impl Item { "#[arg(default_values_os_t)] can be used only on Vec types\n\n= note: {note}\n\n", note = "see \ - https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes") + https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes") } let inner_type = inner_type(ty); diff --git a/tests/derive_ui/default_values_t_invalid.stderr b/tests/derive_ui/default_values_t_invalid.stderr index 78a336960fd..0a6df92984f 100644 --- a/tests/derive_ui/default_values_t_invalid.stderr +++ b/tests/derive_ui/default_values_t_invalid.stderr @@ -1,6 +1,6 @@ error: #[arg(default_values_t)] can be used only on Vec types - = note: see https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes + = note: see https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes --> tests/derive_ui/default_values_t_invalid.rs:6:11 |