From f62af4057fe3b01f164e35d2dd160ac2b12f2643 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Fri, 14 Jul 2023 13:22:08 -0700 Subject: [PATCH] Fix clippy lint --- packages/core-macro/tests/ifmt.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core-macro/tests/ifmt.rs b/packages/core-macro/tests/ifmt.rs index 195a8651c..2883b8fd6 100644 --- a/packages/core-macro/tests/ifmt.rs +++ b/packages/core-macro/tests/ifmt.rs @@ -1,7 +1,3 @@ -#![allow(clippy::all)] - -use std::borrow::Borrow; - use dioxus_core_macro::*; #[test] @@ -22,8 +18,8 @@ fn formatting_compiles() { // function calls in formatings work assert_eq!( - format_args_f!("{x.borrow():?}").to_string(), - format!("{:?}", x.borrow()) + format_args_f!("{blah(&x):?}").to_string(), + format!("{:?}", blah(&x)) ); // allows duplicate format args @@ -32,3 +28,7 @@ fn formatting_compiles() { format!("{x:?} {x:?}") ); } + +fn blah(hi: &(i32, i32)) -> String { + format_args_f!("{hi.0} {hi.1}").to_string() +}