diff options
author | Federico Guerinoni <41150432+guerinoni@users.noreply.github.com> | 2022-04-28 13:57:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 13:57:27 +0200 |
commit | 5a3ced8d3de84619ab8b6f1e306b3006fae9a9c9 (patch) | |
tree | 8504268e3bf10ed63ff0a541369721309ece10e1 /tests | |
parent | 3a46074c36a3f1f1f066ca0c9be1a2efc91563e2 (diff) |
Fix clippy warnings (#627)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_merge_operator.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_merge_operator.rs b/tests/test_merge_operator.rs index 1e75f19..12137f0 100644 --- a/tests/test_merge_operator.rs +++ b/tests/test_merge_operator.rs @@ -115,8 +115,7 @@ fn test_counting_full_merge( operands: &MergeOperands, ) -> Option<Vec<u8>> { let mut counts = existing_val - .map(ValueCounts::from_slice) - .flatten() + .and_then(ValueCounts::from_slice) .unwrap_or_default(); for op in operands { |