From f78ddf136ee36a2d2c56f733aad8c813061bae02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 22 Mar 2024 20:08:33 +0100 Subject: [PATCH] Fix `clippy` lint --- src/compiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler.rs b/src/compiler.rs index 0ce8adf..b140310 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -39,8 +39,8 @@ impl Compiler { let gitignore = root.as_ref().join(".gitignore"); if let Ok(mut ignored) = fs::read_to_string(&gitignore) { - if !ignored.ends_with("\n") { - ignored.push_str("\n"); + if !ignored.ends_with('\n') { + ignored.push('\n'); } if !ignored.lines().any(|line| line == "target") {