Make clippy happy
This commit is contained in:
8 files changed
+20
-23
No files matched your search
@@ -15,7 +15,7 @@ fn app(cx: Scope) -> Element {
|
||||
if *running.current() {
|
||||
loop {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(10)).await;
|
||||
if let Some(element) = elements.read().get(focused) {
|
||||
if let Some(element) = elements.with(|f| f.get(focused).cloned()) {
|
||||
_ = element.set_focus(true).await;
|
||||
} else {
|
||||
focused = 0;
|
||||
|
||||
Reference in new issue
Block a user