Skip to content

Commit a46443b

Browse files
committed
fix: fix clippy warnings
1 parent acce49a commit a46443b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyo3-ffi/src/compat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
#[cfg(Py_3_13)]
1313
mod py313_compat {
14-
use crate::dictobject::PyDict_GetItemRef;
14+
pub use crate::dictobject::PyDict_GetItemRef;
1515
}
1616
#[cfg(not(Py_3_13))]
1717
mod py313_compat {

src/types/dict.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,8 @@ mod tests {
727727
#[crate::pymethods(crate = "crate")]
728728
impl HashErrors {
729729
#[new]
730-
fn new() -> PyResult<Self> {
731-
Ok(HashErrors {})
730+
fn new() -> Self {
731+
HashErrors {}
732732
}
733733

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

0 commit comments

Comments
 (0)