From 280d5e478dbe81b44f0e92f53168350bd508fdf7 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 24 Mar 2023 11:47:06 -0700 Subject: [PATCH] Remove dead code from ImplItemFn's ToTokens --- src/item.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/item.rs b/src/item.rs index d36c7df298..70f6dec909 100644 --- a/src/item.rs +++ b/src/item.rs @@ -3149,14 +3149,6 @@ mod printing { self.vis.to_tokens(tokens); self.defaultness.to_tokens(tokens); self.sig.to_tokens(tokens); - if self.block.stmts.len() == 1 { - if let Stmt::Item(Item::Verbatim(verbatim)) = &self.block.stmts[0] { - if verbatim.to_string() == ";" { - verbatim.to_tokens(tokens); - return; - } - } - } self.block.brace_token.surround(tokens, |tokens| { tokens.append_all(self.attrs.inner()); tokens.append_all(&self.block.stmts);