Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Nov 11, 2024
1 parent 8bb6858 commit 33d37c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions ark-cli/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,9 @@ pub fn translate_storage(
root: &Option<PathBuf>,
storage: &str,
) -> Option<(PathBuf, Option<StorageType>)> {
if let Ok(path) = PathBuf::from_str(storage) {
if path.exists() && path.is_dir() {
return Some((path, None));
}
let Ok(path) = PathBuf::from_str(storage);
if path.exists() && path.is_dir() {
return Some((path, None));
}

match storage.to_lowercase().as_str() {
Expand Down
3 changes: 1 addition & 2 deletions fs-index/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,7 @@ impl<Id: ResourceId> ResourceIndex<Id> {
/// - The index is up-to-date with the file system except for the updated
/// resource
/// - In case of a addition, the resource was not already in the index
/// - In case of a removal, the resource was already in the
/// index
/// - In case of a removal, the resource was already in the index
/// - In case of a move or rename, `update_one()` should be called twice:
/// once with the old path to remove the previous entry, and once with the
/// new path to add the updated entry
Expand Down

0 comments on commit 33d37c2

Please sign in to comment.