Fix clippy lint

This commit is contained in:
Jonathan Kelley committed 2023-07-14 13:22:08 -07:00
1 parent 3b3020edd2
commit f62af4057f
1 file changed
+6 -6
+6 -6
View File
@@ -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()
}