mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Fix ne for objbyteinner
This commit is contained in:
1 parent
620e4b93ea
commit
148e6cc5bc
1 file changed
+1
-1
@@ -275,7 +275,7 @@ impl PyBytesInner {
|
||||
}
|
||||
|
||||
pub fn ne(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue {
|
||||
self.cmp(other, |a, b| a != b, vm)
|
||||
self.eq(other, vm).map(|v| !v)
|
||||
}
|
||||
|
||||
pub fn ge(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue {
|
||||
|
||||
Reference in new issue
Block a user