mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix clippy lints
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -47,7 +47,7 @@ impl PyValue for PyClass {
|
||||
|
||||
#[pyimpl(flags(BASETYPE))]
|
||||
impl PyClassRef {
|
||||
pub fn iter_mro<'a>(&'a self) -> impl Iterator<Item = &'a PyClassRef> + DoubleEndedIterator {
|
||||
pub fn iter_mro(&self) -> impl Iterator<Item = &PyClassRef> + DoubleEndedIterator {
|
||||
std::iter::once(self).chain(self.mro.iter())
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -649,8 +649,8 @@ impl VirtualMachine {
|
||||
descriptor,
|
||||
vec![
|
||||
descr,
|
||||
obj.unwrap_or(self.get_none()),
|
||||
cls.unwrap_or(self.get_none()),
|
||||
obj.unwrap_or_else(|| self.get_none()),
|
||||
cls.unwrap_or_else(|| self.get_none()),
|
||||
],
|
||||
))
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user