Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
  • Loading branch information
MrCroxx committed Nov 3, 2021
1 parent 23bd3c1 commit eb64eac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions failpoints/io_error_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ mod tests {
.unwrap();
let cfg = Config {
dir: dir.path().to_str().unwrap().to_owned(),
bytes_per_sync: bytes_per_sync,
target_file_size: target_file_size,
bytes_per_sync,
target_file_size,
batch_compression_threshold: ReadableSize(0),
..Default::default()
};
Expand Down Expand Up @@ -201,7 +201,7 @@ mod tests {

#[derive(Default)]
struct FailpointsHook {
pre_append_action: Arc<RwLock<HashMap<u64, Box<dyn FnOnce() -> () + Send + Sync>>>>,
pre_append_action: Arc<RwLock<HashMap<u64, Box<dyn FnOnce() + Send + Sync>>>>,
pre_append_timer: AtomicU64,
}

Expand All @@ -216,7 +216,7 @@ mod tests {
fn register_pre_append_action(
&mut self,
index: u64,
action: impl FnOnce() -> () + Send + Sync + 'static,
action: impl FnOnce() + Send + Sync + 'static,
) {
self.pre_append_action
.write()
Expand Down

0 comments on commit eb64eac

Please sign in to comment.