Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
buxx committed May 20, 2024
1 parent 60862e0 commit 5b94b9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trsync/src/ignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::{
convert::TryFrom,
fs::{self, OpenOptions},
io::{self, Write},
path::PathBuf,
};

use async_std::path::Path;
Expand All @@ -27,7 +26,7 @@ impl TryFrom<&Context> for Ignore {

fn try_from(value: &Context) -> Result<Self, Self::Error> {
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(),
Expand Down

0 comments on commit 5b94b9c

Please sign in to comment.