fix clippy lint
This commit is contained in:
parent
65e21d7874
commit
9cdbf81a4b
|
@ -40,7 +40,7 @@ fn app(cx: Scope) -> Element {
|
|||
}
|
||||
|
||||
// We can also use the signal value as a slice
|
||||
if let &[ref first, .., ref last] = saved_values.read().as_slice() {
|
||||
if let [ref first, .., ref last] = saved_values.read().as_slice() {
|
||||
rsx! { li { "First and last: {first}, {last}" } }
|
||||
} else {
|
||||
rsx! { "No saved values" }
|
||||
|
|
Loading…
Reference in New Issue