fix clippy lint

This commit is contained in:
Jonathan Kelley 2023-10-17 16:06:43 -07:00
parent 65e21d7874
commit 9cdbf81a4b
No known key found for this signature in database
GPG Key ID: 1FBB50F7EB0A08BE
1 changed files with 1 additions and 1 deletions

View File

@ -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" }