Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sftse committed Apr 18, 2024
1 parent 21bfcba commit c376579
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,10 @@ impl<F> CompoundFile<F> {
let mut names = internal::path::name_chain_from_path(path)?;
let stream_id = match self.stream_id_for_name_chain(&names) {
Some(stream_id) => stream_id,
None => {
not_found!(
"No such object: {:?}",
internal::path::path_from_name_chain(&names)
);
}
None => not_found!(
"No such object: {:?}",
internal::path::path_from_name_chain(&names)
),
};
names.pop();
let parent_path = internal::path::path_from_name_chain(&names);
Expand Down Expand Up @@ -695,9 +693,7 @@ impl<F: Read + Write + Seek> CompoundFile<F> {
let name = names.pop().unwrap();
let parent_id = match self.stream_id_for_name_chain(&names) {
Some(stream_id) => stream_id,
None => {
not_found!("Parent storage doesn't exist");
}
None => not_found!("Parent storage doesn't exist"),
};
self.minialloc_mut().insert_dir_entry(
parent_id,
Expand Down Expand Up @@ -876,9 +872,7 @@ impl<F: Read + Write + Seek> CompoundFile<F> {
let name = names.pop().unwrap();
let parent_id = match self.stream_id_for_name_chain(&names) {
Some(stream_id) => stream_id,
None => {
not_found!("Parent storage doesn't exist");
}
None => not_found!("Parent storage doesn't exist"),
};
let new_stream_id = self.minialloc_mut().insert_dir_entry(
parent_id,
Expand Down

0 comments on commit c376579

Please sign in to comment.