diff --git a/vm/src/stdlib/itertools.rs b/vm/src/stdlib/itertools.rs index 973d7832a..8355ddc1b 100644 --- a/vm/src/stdlib/itertools.rs +++ b/vm/src/stdlib/itertools.rs @@ -226,7 +226,7 @@ mod decl { if step.is_one() { return Ok(format!("count({})", cur)); } - Ok(format!("count({}, {})", cur, step.to_string())) + Ok(format!("count({}, {})", cur, step)) } } impl IterNextIterable for PyItertoolsCount {}