From 9452dfaac73cf1ad99e43795f3b1066e54e32abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 3 Jun 2021 15:32:46 +0200 Subject: NFC: remove redundant clones (clippy::perf) --- crates/proc_macro_api/src/msg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/proc_macro_api/src') 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>( // Some ill behaved macro try to use stdout for debugging // We ignore it here - if !buf.starts_with("{") { + if !buf.starts_with('{') { log::error!("proc-macro tried to print : {}", buf); continue; } -- cgit v1.2.3