Skip to content

Commit

Permalink
remove generic parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Aug 21, 2023
1 parent 081b252 commit 14506bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/validators/tuple.rs
Expand Up @@ -58,14 +58,14 @@ impl_py_gc_traverse!(TupleValidator { validators });

impl TupleValidator {
#[allow(clippy::too_many_arguments)]
fn validate_tuple_items<'s, 'data, S: Iterator<Item = &'s CombinedValidator>, I: Input<'data> + 'data>(
fn validate_tuple_items<'s, 'data, I: Input<'data> + 'data>(
&self,
py: Python<'data>,
input: &'data impl Input<'data>,
state: &mut ValidationState,
output: &mut Vec<PyObject>,
errors: &mut Vec<ValLineError<'data>>,
item_validators: S,
item_validators: &[CombinedValidator],
collection_iter: &mut NextCountingIterator<impl Iterator<Item = &'data I>>,
collection_len: Option<usize>,
) -> ValResult<'data, ()> {
Expand Down Expand Up @@ -118,7 +118,7 @@ impl TupleValidator {
state,
&mut output,
errors,
head_validators.iter(),
head_validators,
collection_iter,
collection_len,
)?;
Expand Down Expand Up @@ -175,7 +175,7 @@ impl TupleValidator {
state,
&mut output,
errors,
tail_validators.iter(),
tail_validators,
&mut NextCountingIterator::new(tail_buffer.into_iter(), index),
collection_len,
)?;
Expand All @@ -188,7 +188,7 @@ impl TupleValidator {
state,
&mut output,
errors,
self.validators.iter(),
&self.validators,
collection_iter,
collection_len,
)?;
Expand Down

0 comments on commit 14506bf

Please sign in to comment.