Skip to content

Commit 45bda3b

Browse files
committed
Remove Container::push.
Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent c06a057 commit 45bda3b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

container/src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ pub trait Container: Default {
2222
/// The type of elements when draining the container.
2323
type Item<'a> where Self: 'a;
2424

25-
/// Push `item` into self
26-
#[inline]
27-
fn push<T>(&mut self, item: T) where Self: PushInto<T> {
28-
self.push_into(item)
29-
}
30-
3125
/// The number of elements in this container
3226
///
3327
/// This number is used in progress tracking to confirm the receipt of some number
@@ -165,7 +159,7 @@ impl<T, C: SizableContainer + PushInto<T>> PushInto<T> for CapacityContainerBuil
165159
self.current.ensure_capacity(&mut self.empty);
166160

167161
// Push item
168-
self.current.push(item);
162+
self.current.push_into(item);
169163

170164
// Maybe flush
171165
if self.current.at_capacity() {

timely/src/dataflow/operators/core/capture/extract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ where
7171
to_sort.sort();
7272
let mut sorted = C::default();
7373
for datum in to_sort.into_iter() {
74-
sorted.push(datum);
74+
sorted.push_into(datum);
7575
}
7676
if !sorted.is_empty() {
7777
result.push((time, sorted));

0 commit comments

Comments
 (0)