Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Jun 29, 2024
1 parent 7ae24b8 commit 2b5fc41
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// TODO: remove
#![allow(dead_code, unused_variables)]

use std::marker::PhantomData;
use std::rc::Rc;

Expand Down Expand Up @@ -94,6 +91,7 @@ pub fn RovingFocusGroup(
r#loop=r#loop
on_mouse_down=on_mouse_down
on_focus=on_focus
on_blur=on_blur
as_child=as_child
node_ref=node_ref
attrs=attrs.get_value()
Expand Down Expand Up @@ -437,7 +435,7 @@ fn get_focus_intent(
}
}

fn focus_first(candidates: Vec<web_sys::HtmlElement>, prevent_scroll: Option<bool>) {
fn focus_first(candidates: Vec<web_sys::HtmlElement>, _prevent_scroll: Option<bool>) {
let previously_focused_element = document().active_element();

for candidate in candidates {
Expand Down

0 comments on commit 2b5fc41

Please sign in to comment.