Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rbran committed Nov 23, 2023
1 parent 32c4c0d commit 570e0e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion backhand-test/tests/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn issue_363() {
// try to put a file inside the first file
match fs.push_file(dummy_file, "a/b", dummy_header) {
// correct result: InvalidFilePath (or equivalent error?)
Err(backhand::BackhandError::InvalidFilePath) => {},
Err(backhand::BackhandError::InvalidFilePath) => {}
Ok(_) => panic!("Invalid result"),
x => x.unwrap(),
};
Expand Down
1 change: 0 additions & 1 deletion backhand/src/filesystem/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ impl<T> Nodes<T> {
_ => return Err(BackhandError::InvalidFilePath),
}


match self.nodes.binary_search_by(|node| node.fullpath.as_path().cmp(path)) {
//file with this fullpath already exists
Ok(_index) => Err(BackhandError::DuplicatedFileName),
Expand Down

0 comments on commit 570e0e0

Please sign in to comment.