Skip to content

Commit

Permalink
Merge pull request #247 from cgwalters/unused-parens
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon authored May 27, 2020
2 parents 39878b7 + 041bb24 commit 796b952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osmet/fiemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ mod ffi {
// This is a hack to get the size of the fiemap struct *without* the extents array. We could
// use offset_of(fiemap, fm_extents) once that's available as a `const fn`.
const FIEMAP_SIZE: u32 =
((size_of::<fiemap>() as u32) - (size_of::<[fiemap_extent; EXTENT_COUNT]>() as u32));
(size_of::<fiemap>() as u32) - (size_of::<[fiemap_extent; EXTENT_COUNT]>() as u32);

// https://github.com/torvalds/linux/blob/0a679e13ea30f85a1aef0669ee0c5a9fd7860b34/include/uapi/linux/fs.h#L208
// We have to use _bad! here because we don't want the macro to use size_of::<fiemap> directly.
Expand Down

0 comments on commit 796b952

Please sign in to comment.