Skip to content

Commit 5900216

Browse files
committed
fix(derive): Update link for derive attributes
Fixes #5842
1 parent fde45f9 commit 5900216

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

clap_derive/src/item.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ impl Item {
561561
only on field level\n\n= note: {note}\n\n",
562562

563563
note = "see \
564-
https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes")
564+
https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes")
565565
};
566566

567567
let val = if let Some(expr) = &attr.value {
@@ -611,7 +611,7 @@ impl Item {
611611
only on field level\n\n= note: {note}\n\n",
612612

613613
note = "see \
614-
https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes")
614+
https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes")
615615
};
616616
let expr = attr.value_or_abort()?;
617617

@@ -622,7 +622,7 @@ impl Item {
622622
"#[arg(default_values_t)] can be used only on Vec types\n\n= note: {note}\n\n",
623623

624624
note = "see \
625-
https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes")
625+
https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes")
626626
}
627627
let inner_type = inner_type(ty);
628628

@@ -689,7 +689,7 @@ impl Item {
689689
only on field level\n\n= note: {note}\n\n",
690690

691691
note = "see \
692-
https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes")
692+
https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes")
693693
};
694694

695695
let val = if let Some(expr) = &attr.value {
@@ -739,7 +739,7 @@ impl Item {
739739
only on field level\n\n= note: {note}\n\n",
740740

741741
note = "see \
742-
https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes")
742+
https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes")
743743
};
744744
let expr = attr.value_or_abort()?;
745745

@@ -750,7 +750,7 @@ impl Item {
750750
"#[arg(default_values_os_t)] can be used only on Vec types\n\n= note: {note}\n\n",
751751

752752
note = "see \
753-
https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes")
753+
https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes")
754754
}
755755
let inner_type = inner_type(ty);
756756

tests/derive_ui/default_values_t_invalid.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error: #[arg(default_values_t)] can be used only on Vec types
22

3-
= note: see https://github.com/clap-rs/clap/blob/master/examples/derive_ref/README.md#magic-attributes
3+
= note: see https://docs.rs/clap/latest/clap/_derive/index.html#arg-attributes
44

55
--> tests/derive_ui/default_values_t_invalid.rs:6:11
66
|

0 commit comments

Comments
 (0)