Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Leitao <jorgecarleitao@gmail.com>
  • Loading branch information
AnIrishDuck and jorgecarleitao committed Oct 21, 2022
1 parent d118365 commit 1015950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/array/list/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl<O: Offset, M: MutableArray> MutableListArray<O, M> {
/// - the passed iterator has no upper bound.
pub fn extend_offsets<II>(&mut self, expansion: II)
where
II: IntoIterator<Item = Option<O>> + TrustedLen,
II: TrustedLen<Item = Option<O>>,
{
let current_len = self.offsets.len();
let (_, upper) = expansion.size_hint();
Expand Down Expand Up @@ -199,7 +199,7 @@ impl<O: Offset, M: MutableArray> MutableListArray<O, M> {
/// Panics if the passed iterator has no upper bound.
pub unsafe fn unsafe_extend_offsets<II>(&mut self, expansion: II)
where
II: IntoIterator<Item = Option<O>> + TrustedLen,
II: TrustedLen<Item = Option<O>>,
{
let (_, upper) = expansion.size_hint();
let upper = upper.expect("iterator must have upper bound");
Expand Down

0 comments on commit 1015950

Please sign in to comment.