chore: make clippy happy

This commit is contained in:
Jonathan Kelley committed 2022-07-02 23:45:32 -04:00
1 parent fcbd260f1a
commit 2884d72b08
10 files changed
+42 -50

No files matched your search

+4 -7
View File
@@ -8,22 +8,19 @@ fn formatting_compiles() {
// escape sequences work
assert_eq!(
format_args_f!("{x:?} {{}}}}").to_string(),
format!("{:?} {{}}}}", x).to_string()
format!("{:?} {{}}}}", x)
);
assert_eq!(
format_args_f!("{{{{}} {x:?}").to_string(),
format!("{{{{}} {:?}", x).to_string()
format!("{{{{}} {:?}", x)
);
// paths in formating works
assert_eq!(
format_args_f!("{x.0}").to_string(),
format!("{}", x.0).to_string()
);
assert_eq!(format_args_f!("{x.0}").to_string(), format!("{}", x.0));
// function calls in formatings work
assert_eq!(
format_args_f!("{x.borrow():?}").to_string(),
format!("{:?}", x.borrow()).to_string()
format!("{:?}", x.borrow())
);
}