Skip to content

Commit 3858747

Browse files
authored
Merge pull request #54 from Rust-for-Linux/rust-fixes-port
port rust-fixes from the kernel
2 parents 324e3eb + d716b6f commit 3858747

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/src/pinned_drop.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ pub(crate) fn pinned_drop(_args: TokenStream, input: TokenStream) -> TokenStream
2828
// Found the end of the generics, this should be `PinnedDrop`.
2929
assert!(
3030
matches!(tt, TokenTree::Ident(i) if i.to_string() == "PinnedDrop"),
31-
"expected 'PinnedDrop', found: '{:?}'",
32-
tt
31+
"expected 'PinnedDrop', found: '{tt:?}'"
3332
);
3433
pinned_drop_idx = Some(i);
3534
break;

0 commit comments

Comments
 (0)