Skip to content

shardtree: Use `Tree` constructors instead of struct creation

Sign in for the full log view
GitHub Actions / Clippy (MSRV) failed Jun 26, 2024 in 1s

Clippy (MSRV)

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.60.0 (7737e0b5c 2022-04-04)
  • cargo 1.60.0 (d1fd9fe 2022-03-01)
  • clippy 0.1.60 (7737e0b 2022-04-04)

Annotations

Check failure on line 35 in shardtree/src/testing.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

redundant closure

error: redundant closure
  --> shardtree/src/testing.rs:35:27
   |
35 |         arb_leaf.prop_map(|value| Tree::leaf(value))
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Tree::leaf`
   |
   = note: `-D clippy::redundant-closure` implied by `-D warnings`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure

Check failure on line 35 in shardtree/src/testing.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (MSRV)

redundant closure

error: redundant closure
  --> shardtree/src/testing.rs:35:27
   |
35 |         arb_leaf.prop_map(|value| Tree::leaf(value))
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Tree::leaf`
   |
   = note: `-D clippy::redundant-closure` implied by `-D warnings`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure