Skip to content
Open
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 rust/chromium_prelude/import_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl Parse for ImportList {
Err(e) => {
return Err(Error::new(
str_span,
format!("invalid GN path {}: {}", quote::quote! {#label}, e),
format!("invalid GN path {}: {e}", quote::quote! {#label}),
));
}
},
Expand Down
2 changes: 1 addition & 1 deletion rust/tests/test_rust_shared_library/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn say_hello() {
pub fn alloc_aligned() {
let layout = unsafe { Layout::from_size_align_unchecked(1024, 512) };
let ptr = unsafe { alloc(layout) };
println!("Alloc aligned ptr: {:p}", ptr);
println!("Alloc aligned ptr: {ptr:p}");
unsafe { dealloc(ptr, layout) };
}

Expand Down
2 changes: 1 addition & 1 deletion rust/tests/test_rust_static_library/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn say_hello() {
pub fn alloc_aligned() {
let layout = unsafe { Layout::from_size_align_unchecked(1024, 512) };
let ptr = unsafe { alloc(layout) };
println!("Alloc aligned ptr: {:p}", ptr);
println!("Alloc aligned ptr: {ptr:p}");
unsafe { dealloc(ptr, layout) };
}

Expand Down