mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-14 00:27:12 +00:00
chore: fix lifetime on example (#2125)
```bash cd leptos/leptos_macro/example cargo clippy ``` warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:41:20 | 41 | fn TestMutCallback<'a, F>(mut callback: F, value: &'a str) -> impl IntoView | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 41 - fn TestMutCallback<'a, F>(mut callback: F, value: &'a str) -> impl IntoView 41 + fn TestMutCallback<F>(mut callback: F, value: &str) -> impl IntoView | warning: `example` (lib) generated 1 warning (run `cargo clippy --fix --lib -p example` to apply 1 suggestion)
This commit is contained in:
parent
ea80a21a54
commit
34fb39c976
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ pub fn TestComponent(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
fn TestMutCallback<'a, F>(mut callback: F, value: &'a str) -> impl IntoView
|
fn TestMutCallback<F>(mut callback: F, value: &'static str) -> impl IntoView
|
||||||
where
|
where
|
||||||
F: FnMut(u32) + 'static,
|
F: FnMut(u32) + 'static,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue