From 1d320ed38708f2a1c72553d3d42e1ccb6b79373b Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 14 Nov 2023 09:15:19 +1100 Subject: [PATCH] Remove unnecessary derives. --- compiler/rustc_ast_pretty/src/pp.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_ast_pretty/src/pp.rs b/compiler/rustc_ast_pretty/src/pp.rs index 7ab8c3eaba2..249d02a76da 100644 --- a/compiler/rustc_ast_pretty/src/pp.rs +++ b/compiler/rustc_ast_pretty/src/pp.rs @@ -177,7 +177,7 @@ pub struct BeginToken { breaks: Breaks, } -#[derive(Clone, PartialEq)] +#[derive(PartialEq)] pub enum Token { // In practice a string token contains either a `&'static str` or a // `String`. `Cow` is overkill for this because we never modify the data, @@ -229,7 +229,6 @@ pub struct Printer { last_printed: Option, } -#[derive(Clone)] struct BufEntry { token: Token, size: isize,