Skip to content

Commit e23f0a7

Browse files
cuviperemilio
authored andcommitted
Fix clippy::uninlined_format_args in log macros
These are newly in effect since rust-lang/log#665.
1 parent 88c7bd1 commit e23f0a7

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

bindgen/codegen/mod.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ impl Item {
494494
if self.is_blocklisted(ctx) || result.seen(self.id()) {
495495
debug!(
496496
"<Item as CodeGenerator>::process_before_codegen: Ignoring hidden or seen: \
497-
self = {:?}",
498-
self
497+
self = {self:?}"
499498
);
500499
return false;
501500
}
@@ -986,8 +985,7 @@ impl CodeGenerator for Type {
986985
if inner_canon_type.is_invalid_type_param() {
987986
warn!(
988987
"Item contained invalid named type, skipping: \
989-
{:?}, {:?}",
990-
item, inner_item
988+
{item:?}, {inner_item:?}"
991989
);
992990
return;
993991
}
@@ -1098,8 +1096,7 @@ impl CodeGenerator for Type {
10981096
{
10991097
warn!(
11001098
"Item contained invalid template \
1101-
parameter: {:?}",
1102-
item
1099+
parameter: {item:?}"
11031100
);
11041101
return;
11051102
}

bindgen/ir/context.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,8 +1755,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
17551755
// Bypass all the validations in add_item explicitly.
17561756
debug!(
17571757
"instantiate_template: inserting nested \
1758-
instantiation item: {:?}",
1759-
sub_item
1758+
instantiation item: {sub_item:?}"
17601759
);
17611760
self.add_item_to_module(&sub_item);
17621761
debug_assert_eq!(sub_id, sub_item.id());

bindgen/ir/ty.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,7 @@ impl Type {
920920
let Ok(inner_type) = inner else {
921921
warn!(
922922
"Failed to parse template alias \
923-
{:?}",
924-
location
923+
{location:?}"
925924
);
926925
return Err(ParseError::Continue);
927926
};

0 commit comments

Comments
 (0)