File tree Expand file tree Collapse file tree 6 files changed +9
-15
lines changed Expand file tree Collapse file tree 6 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,9 @@ fn main() {
47
47
test_string. push_str ( & format ! (
48
48
r###"
49
49
#[path = "{}"]
50
- mod {};
50
+ mod {module_name };
51
51
"### ,
52
52
path. display( ) . to_string( ) . replace( '\\' , "\\ \\ " ) ,
53
- module_name,
54
53
) ) ;
55
54
}
56
55
}
Original file line number Diff line number Diff line change @@ -183,9 +183,8 @@ fn compare_generated_header(
183
183
}
184
184
None => panic ! (
185
185
"missing test expectation file and/or '__testing_only_libclang_$VERSION' \
186
- feature for header '{}'; looking for expectation file at '{:?}'",
186
+ feature for header '{}'; looking for expectation file at '{looked_at :?}'",
187
187
header. display( ) ,
188
- looked_at,
189
188
) ,
190
189
}
191
190
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ pub(crate) fn blob(
107
107
}
108
108
109
109
ctx. generated_opaque_array ( align) ;
110
- let ident = format_ident ! ( "__BindgenOpaqueArray{}" , align ) ;
110
+ let ident = format_ident ! ( "__BindgenOpaqueArray{align}" ) ;
111
111
let size = layout. size ;
112
112
if ctx. options ( ) . enable_cxx_namespaces {
113
113
syn:: parse_quote! { root:: #ident<[ u8 ; #size] > }
Original file line number Diff line number Diff line change @@ -5617,7 +5617,7 @@ pub(crate) mod utils {
5617
5617
let ident = if align == 1 {
5618
5618
format_ident ! ( "__BindgenOpaqueArray" )
5619
5619
} else {
5620
- format_ident ! ( "__BindgenOpaqueArray{}" , align )
5620
+ format_ident ! ( "__BindgenOpaqueArray{align}" )
5621
5621
} ;
5622
5622
let repr = if align <= 1 {
5623
5623
quote ! { #[ repr( C ) ] }
Original file line number Diff line number Diff line change @@ -1701,8 +1701,7 @@ impl Item {
1701
1701
if let Err ( ParseError :: Recurse ) = result {
1702
1702
warn ! (
1703
1703
"Unknown type, assuming named template type: \
1704
- id = {:?}; spelling = {}",
1705
- id,
1704
+ id = {id:?}; spelling = {}",
1706
1705
ty. spelling( )
1707
1706
) ;
1708
1707
Item :: type_param ( Some ( id) , location, ctx)
@@ -1732,13 +1731,10 @@ impl Item {
1732
1731
1733
1732
debug ! (
1734
1733
"Item::type_param:\n \
1735
- \t with_id = {:?},\n \
1736
- \t ty = {} {:?},\n \
1737
- \t location: {:?}",
1738
- with_id,
1734
+ \t with_id = {with_id:?},\n \
1735
+ \t ty = {} {ty:?},\n \
1736
+ \t location: {location:?}",
1739
1737
ty. spelling( ) ,
1740
- ty,
1741
- location
1742
1738
) ;
1743
1739
1744
1740
if ty. kind ( ) != clang_sys:: CXType_Unexposed {
Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ fn rust_to_clang_target(rust_target: &str) -> Box<str> {
685
685
686
686
let mut triple: Vec < & str > = rust_target. split_terminator ( '-' ) . collect ( ) ;
687
687
688
- assert ! ( !triple. is_empty( ) , "{}" , TRIPLE_HYPHENS_MESSAGE ) ;
688
+ assert ! ( !triple. is_empty( ) , "{TRIPLE_HYPHENS_MESSAGE}" ) ;
689
689
triple. resize ( 4 , "" ) ;
690
690
691
691
// RISC-V
You can’t perform that action at this time.
0 commit comments