diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-14 09:15:19 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-22 08:13:21 +1100 |
| commit | 1d320ed38708f2a1c72553d3d42e1ccb6b79373b (patch) | |
| tree | 20c98b25be7144aa9f53427738d1d8e113c42b57 | |
| parent | 2f51f0b2900db805f8230da07d45f4033cc29ecb (diff) | |
Remove unnecessary derives.
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pp.rs | 3 |
1 files changed, 1 insertions, 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<Token>, } -#[derive(Clone)] struct BufEntry { token: Token, size: isize, |
