Skip to content

Commit

Permalink
fix: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Jul 23, 2024
1 parent acce49a commit a46443b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyo3-ffi/src/compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#[cfg(Py_3_13)]
mod py313_compat {
use crate::dictobject::PyDict_GetItemRef;
pub use crate::dictobject::PyDict_GetItemRef;
}
#[cfg(not(Py_3_13))]
mod py313_compat {
Expand Down
4 changes: 2 additions & 2 deletions src/types/dict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,8 @@ mod tests {
#[crate::pymethods(crate = "crate")]
impl HashErrors {
#[new]
fn new() -> PyResult<Self> {
Ok(HashErrors {})
fn new() -> Self {
HashErrors {}
}

fn __hash__(&self) -> PyResult<isize> {
Expand Down

0 comments on commit a46443b

Please sign in to comment.