don't clone types that are copy

found via clippy
This commit is contained in:
Matthias Krüger 2020-01-16 23:15:52 +01:00
parent 4884061838
commit 7fbd30b1ae
15 changed files with 18 additions and 20 deletions

View file

@ -196,7 +196,7 @@ impl AnnotateSnippetEmitterWriter {
) {
let converter = DiagnosticConverter {
source_map: self.source_map.clone(),
level: level.clone(),
level: *level,
message,
code: code.clone(),
msp: msp.clone(),