Skip to content

Commit 5b56acc

Browse files
committed
Remove unnecessary derives.
1 parent c6d29e2 commit 5b56acc

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_ast_pretty/src

1 file changed

+1
-2
lines changed

compiler/rustc_ast_pretty/src/pp.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub struct BeginToken {
177177
breaks: Breaks,
178178
}
179179

180-
#[derive(Clone, PartialEq)]
180+
#[derive(PartialEq)]
181181
pub enum Token {
182182
// In practice a string token contains either a `&'static str` or a
183183
// `String`. `Cow` is overkill for this because we never modify the data,
@@ -229,7 +229,6 @@ pub struct Printer {
229229
last_printed: Option<Token>,
230230
}
231231

232-
#[derive(Clone)]
233232
struct BufEntry {
234233
token: Token,
235234
size: isize,

0 commit comments

Comments
 (0)