Skip to content

Commit

Permalink
chore: Fix clippy warnings in use_init_native_platforms tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 28, 2024
1 parent 2531a94 commit 5abfc32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/hooks/src/use_init_native_platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mod test {
pub async fn uncontrolled_focus_accessibility() {
#[allow(non_snake_case)]
fn OtherChild() -> Element {
let mut focus = use_focus();
let focus = use_focus();
rsx!(rect {
a11y_id: focus.attribute(),
a11y_role: "genericContainer",
Expand Down Expand Up @@ -218,8 +218,8 @@ mod test {
#[tokio::test]
pub async fn auto_focus_accessibility() {
fn use_focus_app() -> Element {
let mut focus_1 = use_focus();
let mut focus_2 = use_focus();
let focus_1 = use_focus();
let focus_2 = use_focus();
rsx!(
rect {
a11y_id: focus_1.attribute(),
Expand Down

0 comments on commit 5abfc32

Please sign in to comment.