fix: dead links (#3013)

This commit is contained in:
IchHabeKeineNamen 2022-12-06 14:31:35 +08:00 committed by GitHub
parent 54871f8019
commit 77b0d40455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 18 deletions

View File

@ -49,7 +49,7 @@ impl VisitMut for BodyRewriter {
m,
"hooks cannot be called at this position.";
help = "move hooks to the top-level of your function.";
note = "see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks"
note = "see: https://yew.rs/docs/next/concepts/function-components/hooks"
);
} else {
*i = parse_quote_spanned! { i.span() => ::yew::functional::Hook::run(#i, #ctx_ident) };
@ -75,7 +75,7 @@ impl VisitMut for BodyRewriter {
ident,
"hooks cannot be called at this position.";
help = "move hooks to the top-level of your function.";
note = "see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks"
note = "see: https://yew.rs/docs/next/concepts/function-components/hooks"
);
} else {
*i = parse_quote_spanned! { i.span() => ::yew::functional::Hook::run(#i, #ctx_ident) };

View File

@ -1,7 +1,7 @@
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/function_component_attr/hook_location-fail.rs:9:9
|
@ -11,7 +11,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/function_component_attr/hook_location-fail.rs:14:9
|
@ -21,7 +21,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/function_component_attr/hook_location-fail.rs:19:9
|
@ -31,7 +31,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/function_component_attr/hook_location-fail.rs:22:26
|
@ -41,7 +41,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/function_component_attr/hook_location-fail.rs:23:9
|
@ -51,7 +51,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/function_component_attr/hook_location-fail.rs:27:20
|
@ -61,7 +61,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/function_component_attr/hook_location-fail.rs:34:9
|

View File

@ -1,7 +1,7 @@
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_location-fail.rs:9:9
|
@ -11,7 +11,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_location-fail.rs:14:9
|
@ -21,7 +21,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_location-fail.rs:19:9
|
@ -31,7 +31,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_location-fail.rs:22:26
|
@ -41,7 +41,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_location-fail.rs:23:9
|
@ -51,7 +51,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_location-fail.rs:27:20
|
@ -61,7 +61,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_location-fail.rs:34:9
|

View File

@ -1,7 +1,7 @@
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_macro-fail.rs:20:9
|
@ -11,7 +11,7 @@ error: hooks cannot be called at this position.
error: hooks cannot be called at this position.
= help: move hooks to the top-level of your function.
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
--> tests/hook_attr/hook_macro-fail.rs:22:9
|