Fix Clippy warnings in util
crate (#8721)
This PR fixes a number of Clippy warnings in the `util` crate. Release Notes: - N/A
This commit is contained in:
parent
0ac203bde0
commit
c19587d4e4
4 changed files with 20 additions and 16 deletions
|
@ -29,8 +29,8 @@ fn write_tree(path: &Path, tree: serde_json::Value) {
|
|||
Value::Object(_) => {
|
||||
fs::create_dir(&path).unwrap();
|
||||
|
||||
if path.file_name() == Some(&OsStr::new(".git")) {
|
||||
git2::Repository::init(&path.parent().unwrap()).unwrap();
|
||||
if path.file_name() == Some(OsStr::new(".git")) {
|
||||
git2::Repository::init(path.parent().unwrap()).unwrap();
|
||||
}
|
||||
|
||||
write_tree(&path, contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue