Skip to content

Commit 1da0226

Browse files
committed
Use MergeableQueue:default() instead of ::new
1 parent 2e7e7e6 commit 1da0226

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/bors/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl BorsContext {
2424
parser,
2525
db,
2626
repositories,
27-
mergeable_queue: Arc::new(MergeableQueue::new()),
27+
mergeable_queue: Arc::new(MergeableQueue::default()),
2828
}
2929
}
3030
}

src/bors/mergeable_queue.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ impl MergeableQueue {
3333
}
3434
}
3535
}
36+
37+
impl Default for MergeableQueue {
38+
fn default() -> Self {
39+
Self::new()
40+
}
41+
}

0 commit comments

Comments
 (0)