Skip to content

Commit 2d3e108

Browse files
committed
fix: clippy
1 parent f3e28ef commit 2d3e108

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cmd/src/datanode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ mod tests {
221221
assert_eq!(Duration::from_secs(600), dn_opts.wal.purge_interval);
222222
assert_eq!(1024 * 1024 * 1024, dn_opts.wal.file_size.0);
223223
assert_eq!(1024 * 1024 * 1024 * 50, dn_opts.wal.purge_threshold.0);
224-
assert_eq!(false, dn_opts.wal.sync_write);
224+
assert!(!dn_opts.wal.sync_write);
225225
assert_eq!(Some(42), dn_opts.node_id);
226226
let MetaClientOpts {
227227
metasrv_addrs: metasrv_addr,

src/common/base/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
pub mod bit_vec;
1616
pub mod buffer;
1717
pub mod bytes;
18+
#[allow(clippy::all)]
1819
pub mod readable_size;
1920

2021
pub use bit_vec::BitVec;

0 commit comments

Comments
 (0)