Skip to content

Commit

Permalink
fix mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezato committed Jul 18, 2019
1 parent 52ca059 commit 57c2751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nvm/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ mod tests {
let mut parent = dir.as_ref();
while let Some(p) = parent.parent() {
parent = p;
}
};
assert!(create_parent_directories(parent).is_ok());
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion src/storage/journal/nvm_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl<N: NonVolatileMemory> Seek for JournalNvmBuffer<N> {
impl<N: NonVolatileMemory> Read for JournalNvmBuffer<N> {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
if self.is_dirty_area(self.position, buf.len()) {
track!(self.sync())?;
track!(self.flush_write_buf())?;
}

let aligned_start = self.block_size().floor_align(self.position);
Expand Down

0 comments on commit 57c2751

Please sign in to comment.