fixes #3561 -- silence new clippy warning
This commit is contained in:
parent
0f34fcd4b7
commit
fae209419c
|
@ -0,0 +1 @@
|
|||
Silenced new `clippy::unnecessary_fallible_conversions` warning when using a `Py<Self>` `self` receiver
|
|
@ -182,6 +182,7 @@ impl SelfType {
|
|||
.map_err(::std::convert::Into::<_pyo3::PyErr>::into)
|
||||
.and_then(
|
||||
#[allow(clippy::useless_conversion)] // In case slf is PyCell<Self>
|
||||
#[allow(unknown_lints, clippy::unnecessary_fallible_conversions)] // In case slf is Py<Self> (unknown_lints can be removed when MSRV is 1.75+)
|
||||
|cell| ::std::convert::TryFrom::try_from(cell).map_err(::std::convert::Into::into)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue