mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix clippy and azure pipelines
This commit is contained in:
2 files changed
+2
No files matched your search
@@ -22,6 +22,7 @@ jobs:
|
||||
"C:\Program Files\Git\mingw64\bin\curl.exe" -sSf -o rustup-init.exe https://win.rustup.rs/
|
||||
.\rustup-init.exe -y
|
||||
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
||||
rustup update
|
||||
rustc -V
|
||||
cargo -V
|
||||
displayName: 'Installing Rust'
|
||||
|
||||
@@ -218,6 +218,7 @@ pub fn get_item(
|
||||
|
||||
type DynPyIter<'a> = Box<dyn ExactSizeIterator<Item = &'a PyObjectRef> + 'a>;
|
||||
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
pub trait SimpleSeq {
|
||||
fn len(&self) -> usize;
|
||||
fn iter(&self) -> DynPyIter;
|
||||
|
||||
Reference in new issue
Block a user