Skip to content

Commit

Permalink
osmet: Remove unused parenthesis
Browse files Browse the repository at this point in the history
I switched to rust-analyzer (it's pretty awesome) and it warns
about the unused parens here.
  • Loading branch information
cgwalters committed May 26, 2020
1 parent 9887b8e commit 041bb24
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 041bb24

Please sign in to comment.