From 805b54409ae9e1f08c838b9a8d50df913341f33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besnier?= Date: Sun, 15 Nov 2020 12:45:20 +0100 Subject: [PATCH] appease clippy --- compiler/fmt/src/spaces.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/fmt/src/spaces.rs b/compiler/fmt/src/spaces.rs index 938f7baed5..2c00c19a3f 100644 --- a/compiler/fmt/src/spaces.rs +++ b/compiler/fmt/src/spaces.rs @@ -111,7 +111,7 @@ pub fn fmt_comments_only<'a, I>( fn fmt_comment<'a>(buf: &mut String<'a>, comment: &'a str) { buf.push('#'); - if !comment.starts_with(" ") { + if !comment.starts_with(' ') { buf.push(' '); } buf.push_str(comment); @@ -119,7 +119,7 @@ fn fmt_comment<'a>(buf: &mut String<'a>, comment: &'a str) { fn fmt_docs<'a>(buf: &mut String<'a>, docs: &'a str) { buf.push_str("##"); - if !docs.starts_with(" ") { + if !docs.starts_with(' ') { buf.push(' '); } buf.push_str(docs);