Skip to content

Commit

Permalink
de-panic more drops
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkrull committed Mar 25, 2024
1 parent 77b033c commit f38624e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/filesystem/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ where
T: crate::TimeSource,
{
fn drop(&mut self) {
self.volume_mgr
.close_dir(self.raw_directory)
.expect("Failed to close directory");
_ = self.volume_mgr.close_dir(self.raw_directory)
}
}

Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ where
T: crate::TimeSource,
{
fn drop(&mut self) {
self.volume_mgr
.close_volume(self.raw_volume)
.expect("Failed to close volume");
_ = self.volume_mgr.close_volume(self.raw_volume)
}
}

Expand Down

0 comments on commit f38624e

Please sign in to comment.