Skip to content

Commit 48421ff

Browse files
authored
Merge pull request RustPython#3832 from GoGim1/issue-3831
Fix rustfmt and clippy warnings
2 parents 99b8d29 + d9f1857 commit 48421ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/stdlib/itertools.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod decl {
1717
AsObject, Py, PyObjectRef, PyPayload, PyRef, PyResult, PyWeakRef, VirtualMachine,
1818
};
1919
use crossbeam_utils::atomic::AtomicCell;
20-
use num_traits::{Signed, ToPrimitive, One};
20+
use num_traits::{One, Signed, ToPrimitive};
2121
use std::fmt;
2222

2323
#[pyattr]
@@ -226,7 +226,7 @@ mod decl {
226226
if step.is_one() {
227227
return Ok(format!("count({})", cur));
228228
}
229-
Ok(format!("count({}, {})", cur, step.to_string()))
229+
Ok(format!("count({}, {})", cur, step))
230230
}
231231
}
232232
impl IterNextIterable for PyItertoolsCount {}

0 commit comments

Comments
 (0)