chore: make clippy happy

This commit is contained in:
Jonathan Kelley committed 2022-07-02 23:45:32 -04:00
1 parent fcbd260f1a
commit 2884d72b08
10 files changed
+42 -50

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ enum Event {
const MAX_EVENTS: usize = 8;
fn app(cx: Scope) -> Element {
let events = use_ref(&cx, || Vec::new());
let events = use_ref(&cx, Vec::new);
let events_lock = events.read();
let first_index = events_lock.len().saturating_sub(MAX_EVENTS);