Skip to content

Commit

Permalink
Fix new errors
Browse files Browse the repository at this point in the history
Signed-off-by: git-hulk <hulk.website@gmail.com>
  • Loading branch information
git-hulk committed Mar 27, 2024
1 parent 0399217 commit 1e2861d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raft_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ mod test {
fn test_unstable_ents() {
let l = default_logger();
let previous_ents = vec![new_entry(1, 1), new_entry(2, 2)];
let tests = vec![(3, vec![]), (1, previous_ents.clone())];
let tests = [(3, vec![]), (1, previous_ents.clone())];

for (i, &(unstable, ref wents)) in tests.iter().enumerate() {
// append stable entries to storage
Expand Down Expand Up @@ -1668,7 +1668,7 @@ mod test {
#[test]
fn test_compaction() {
let l = default_logger();
let tests = vec![
let tests = [
// out of upper bound
(1000, vec![1001u64], vec![0usize], true),
(
Expand Down

0 comments on commit 1e2861d

Please sign in to comment.