Skip to content

Commit

Permalink
Cleanup unused_parens warning for cast. (pantsbuild#5677)
Browse files Browse the repository at this point in the history
The warning looked like so:
```
   Compiling process_execution v0.0.1 (file:///home/jsirois/dev/pantsbuild/jsirois-pants/src/rust/engine/process_execution)
warning: unnecessary parentheses around function argument
   --> src/nodes.rs:729:28
    |
729 |         externs::store_i32((item.digest.1 as i32)),
    |                            ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
    |
    = note: #[warn(unused_parens)] on by default
```
  • Loading branch information
jsirois authored Apr 9, 2018
1 parent a9d3e19 commit e92dd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/engine/src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ impl Snapshot {
&context.core.types.construct_snapshot,
&[
externs::store_bytes(&(item.digest.0).to_hex().as_bytes()),
externs::store_i32((item.digest.1 as i32)),
externs::store_i32(item.digest.1 as i32),
externs::store_list(path_stats.iter().collect(), false),
],
)
Expand Down

0 comments on commit e92dd10

Please sign in to comment.