Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,7 @@ mod tests {
});

assert_eq!(
&format!("{:?}", node),
&format!("{node:?}"),
r#"Node { role: Unknown, actions: [Click, Focus], is_hidden: true, is_multiselectable: true, children: [#0, #1], active_descendant: #2, custom_actions: [CustomAction { id: 0, description: "test action" }] }"#
);
}
Expand Down
2 changes: 1 addition & 1 deletion consumer/src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ impl<T> fmt::Display for ShortNodeList<'_, T> {
if i != 0 {
write!(f, ", ")?;
}
write!(f, "{:?}", id)?;
write!(f, "{id:?}")?;
}
if iter.next().is_some() {
write!(f, " ...")?;
Expand Down
4 changes: 2 additions & 2 deletions platforms/macos/src/patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ where
types.as_ptr(),
)
});
assert!(success.as_bool(), "Failed to add method {:?}", sel);
assert!(success.as_bool(), "Failed to add method {sel:?}");
}

fn count_args(sel: Sel) -> usize {
Expand All @@ -86,7 +86,7 @@ fn method_type_encoding(ret: &Encoding, args: &[Encoding]) -> CString {
let mut types = format!("{}{}{}", ret, <*mut AnyObject>::ENCODING, Sel::ENCODING);
for enc in args {
use core::fmt::Write;
write!(&mut types, "{}", enc).unwrap();
write!(&mut types, "{enc}").unwrap();
}
CString::new(types).unwrap()
}
Loading