From b0dd3419e2b5a9fa5f7559c7cb227bc1c8762338 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 12 Jan 2024 22:40:57 +0900 Subject: [PATCH] Remove extra comma --- pin-project-internal/src/pinned_drop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pin-project-internal/src/pinned_drop.rs b/pin-project-internal/src/pinned_drop.rs index c76aa3bb..0d0d879e 100644 --- a/pin-project-internal/src/pinned_drop.rs +++ b/pin-project-internal/src/pinned_drop.rs @@ -116,7 +116,7 @@ fn validate_sig(sig: &Signature) -> Result<()> { const INVALID_ARGUMENT: &str = "method `drop` must take an argument `self: Pin<&mut Self>`"; if sig.ident != "drop" { - bail!(sig.ident, "method `{}` is not a member of trait `PinnedDrop", sig.ident,); + bail!(sig.ident, "method `{}` is not a member of trait `PinnedDrop", sig.ident); } if let ReturnType::Type(_, ty) = &sig.output {