Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Mar 8, 2023
1 parent 802df27 commit 63d0201
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rpds-py"
version = "0.5.1"
version = "0.5.2"
edition = "2021"

[lib]
Expand Down
10 changes: 2 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,10 @@ impl HashTrieSetPy {
fn __richcmp__(&self, other: &Self, op: CompareOp, py: Python<'_>) -> PyResult<PyObject> {
match op {
CompareOp::Eq => Ok((self.inner.size() == other.inner.size()
&& self
.inner
.iter()
.all(|k| other.inner.contains(k)))
&& self.inner.iter().all(|k| other.inner.contains(k)))
.into_py(py)),
CompareOp::Ne => Ok((self.inner.size() != other.inner.size()
|| self
.inner
.iter()
.any(|k| !other.inner.contains(k)))
|| self.inner.iter().any(|k| !other.inner.contains(k)))
.into_py(py)),
_ => Ok(py.NotImplemented()),
}
Expand Down

0 comments on commit 63d0201

Please sign in to comment.