From 5b94b9c86955624f153e0053a79e6d700ba59cff Mon Sep 17 00:00:00 2001 From: Bastien Sevajol Date: Mon, 20 May 2024 12:25:45 +0200 Subject: [PATCH] chore: clippy --- trsync/src/ignore.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trsync/src/ignore.rs b/trsync/src/ignore.rs index fe512c0..86dad59 100644 --- a/trsync/src/ignore.rs +++ b/trsync/src/ignore.rs @@ -2,7 +2,6 @@ use std::{ convert::TryFrom, fs::{self, OpenOptions}, io::{self, Write}, - path::PathBuf, }; use async_std::path::Path; @@ -27,7 +26,7 @@ impl TryFrom<&Context> for Ignore { fn try_from(value: &Context) -> Result { let path = Path::new(&value.folder_path).join(".trsyncignore"); - let file_content = match fs::read_to_string(&path) { + let file_content = match fs::read_to_string(path) { Ok(content) => content, Err(error) => match error.kind() { io::ErrorKind::NotFound => "".to_string(),