Skip to content

Commit 33626fb

Browse files
committed
Fixed compiler warnings
1 parent 4ce8ef7 commit 33626fb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/commands/buffer.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,13 @@ impl Buffer {
515515
_ => write_attr |= INFO2_WRITE,
516516
}
517517

518-
let each_op = matches!(operation.data, OperationData::CdtMapOp(_) | OperationData::CdtBitOp(_) | OperationData::HLLOp(_) | OperationData::EXPOp(_));
518+
let each_op = matches!(
519+
operation.data,
520+
OperationData::CdtMapOp(_)
521+
| OperationData::CdtBitOp(_)
522+
| OperationData::HLLOp(_)
523+
| OperationData::EXPOp(_)
524+
);
519525

520526
if policy.respond_per_each_op || each_op {
521527
write_attr |= INFO2_RESPOND_ALL_OPS;

tests/src/exp_op.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use crate::common;
22
use aerospike::expressions::{int_bin, int_val, num_add};
33
use aerospike::operations::exp::{read_exp, write_exp, ExpReadFlags, ExpWriteFlags};
4-
use aerospike::operations::OperationType::ExpWrite;
5-
use aerospike::{as_bin, as_key, as_val, Bins, ReadPolicy, Value, WritePolicy};
4+
use aerospike::{as_bin, as_key, as_val, Bins, ReadPolicy, WritePolicy};
65

76
#[test]
87
fn exp_ops() {

0 commit comments

Comments
 (0)