NFC: remove redundant clones (clippy::perf)

This commit is contained in:
Matthias Krüger 2021-06-03 15:32:46 +02:00
parent 23b48d377d
commit 9452dfaac7
5 changed files with 5 additions and 5 deletions

View file

@ -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;
}