aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_api
diff options
context:
space:
mode:
authorMatthias Krüger <[email protected]>2021-06-03 14:32:46 +0100
committerMatthias Krüger <[email protected]>2021-06-03 14:32:46 +0100
commit9452dfaac73cf1ad99e43795f3b1066e54e32abd (patch)
treed4ee0f996908ec3020c13496a49a3a5cc42a8e75 /crates/proc_macro_api
parent23b48d377d295c7ff5b59246788f0627d3726b5b (diff)
NFC: remove redundant clones (clippy::perf)
Diffstat (limited to 'crates/proc_macro_api')
-rw-r--r--crates/proc_macro_api/src/msg.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/proc_macro_api/src/msg.rs b/crates/proc_macro_api/src/msg.rs
index f525df152..14eed4289 100644
--- a/crates/proc_macro_api/src/msg.rs
+++ b/crates/proc_macro_api/src/msg.rs
@@ -92,7 +92,7 @@ fn read_json<'a>(
92 92
93 // Some ill behaved macro try to use stdout for debugging 93 // Some ill behaved macro try to use stdout for debugging
94 // We ignore it here 94 // We ignore it here
95 if !buf.starts_with("{") { 95 if !buf.starts_with('{') {
96 log::error!("proc-macro tried to print : {}", buf); 96 log::error!("proc-macro tried to print : {}", buf);
97 continue; 97 continue;
98 } 98 }