Skip to content

Commit 22c4b5f

Browse files
committed
style: clippy
1 parent ca2c436 commit 22c4b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn find_git_dir_from_path(start_path: &Path) -> Option<PathBuf> {
150150

151151
fn read_git_submodule(git_file: &Path) -> Result<PathBuf> {
152152
let content = fs::read_to_string(git_file)?;
153-
let git_dir = PathBuf::from(content.trim_end_matches(&['\n', '\r']));
153+
let git_dir = PathBuf::from(content.trim_end_matches(['\n', '\r']));
154154
if !git_dir.is_dir() {
155155
return Err(HuskyError::GitDirNotFound(git_dir.display().to_string()));
156156
}

0 commit comments

Comments
 (0)