Skip to content

Commit

Permalink
Unreachable instead of unimplemented
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru committed Dec 13, 2023
1 parent de5e71d commit a118615
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/operators/consolidate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,13 @@ impl<'a, K: Data, V: Data, T: Timestamp, R: Data> Builder for ConsolidateBuilder
type Output = ();

fn new() -> Self {
unimplemented!()
// We never construct self using `new`.
unreachable!()
}

fn with_capacity(_keys: usize, _vals: usize, _upds: usize) -> Self {
unimplemented!()
// We never construct self using `with_capacity`.
unreachable!()
}

fn push(&mut self, element: Self::Item) {
Expand Down

0 comments on commit a118615

Please sign in to comment.