Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Apr 9, 2024
1 parent 3f5787c commit 59221f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/curp/src/server/conflict/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn sp_should_returns_all_entries() {
for e in entries.clone() {
sp.insert(e);
}
/// conflict entries should not be inserted
// conflict entries should not be inserted
for e in entries.clone() {
assert!(sp.insert(e).is_some());
}
Expand Down
4 changes: 2 additions & 2 deletions crates/curp/src/server/raw_curp/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ impl RawCurp<TestCommand, TestRoleChange> {
Reverse(Instant::now().add(Duration::from_nanos(u64::MAX))),
);

let sp = Arc::new(Mutex::new(SpecPool::new(vec![Box::new(
let sp = Arc::new(Mutex::new(SpeculativePool::new(vec![Box::new(
TestSpecPool::default(),
)])));
let ucp = Arc::new(Mutex::new(UncomPool::new(vec![Box::new(
let ucp = Arc::new(Mutex::new(UncommittedPool::new(vec![Box::new(
TestUncomPool::default(),
)])));

Expand Down

0 comments on commit 59221f6

Please sign in to comment.