chore: make clippy happy
This commit is contained in:
1 parent
fcbd260f1a
commit
2884d72b08
10 files changed
+42
-50
No files matched your search
@@ -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())
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user