Skip to content

Commit

Permalink
misc: format
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor committed Feb 12, 2024
1 parent 5072c70 commit 7bbd73b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/rattler_installs_packages/src/index/file_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ impl<'a> LockedWriter<'a> {
/// be used to read from the file again.
pub fn commit(self) -> io::Result<LockedReader<'a>> {
self.f.as_file().sync_data().expect("CANT SYNC DATA");
let mut file = fs::File::from_parts(self.f.persist(self.path).expect("CANT PERSIS DATA"), self.path);
let mut file = fs::File::from_parts(
self.f.persist(self.path).expect("CANT PERSIS DATA"),
self.path,
);
file.rewind().expect("CANT REWIND DATA");
Ok(LockedReader {
file,
Expand Down

0 comments on commit 7bbd73b

Please sign in to comment.