Skip to content

Commit

Permalink
fix(derive): Update link for derive attributes
Browse files Browse the repository at this point in the history
Fixes #5842
  • Loading branch information
epage committed Dec 12, 2024
1 parent fde45f9 commit 5900216
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions clap_derive/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()?;

Expand All @@ -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);

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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()?;

Expand All @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/derive_ui/default_values_t_invalid.stderr
Original file line number Diff line number Diff line change
@@ -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
|
Expand Down

0 comments on commit 5900216

Please sign in to comment.