From 570e0e06e3db5b9720b3097be3c89a763c2d2cdc Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Thu, 23 Nov 2023 14:18:51 -0300 Subject: [PATCH] cargo fmt --- backhand-test/tests/issues.rs | 2 +- backhand/src/filesystem/node.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backhand-test/tests/issues.rs b/backhand-test/tests/issues.rs index 0cfa8944..bf621cf1 100644 --- a/backhand-test/tests/issues.rs +++ b/backhand-test/tests/issues.rs @@ -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(), }; diff --git a/backhand/src/filesystem/node.rs b/backhand/src/filesystem/node.rs index 114ad781..ed33657c 100644 --- a/backhand/src/filesystem/node.rs +++ b/backhand/src/filesystem/node.rs @@ -165,7 +165,6 @@ impl Nodes { _ => 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),