Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading