diff --git a/src/errors/validation_exception.rs b/src/errors/validation_exception.rs index 6fc0e96bd..bd01592b3 100644 --- a/src/errors/validation_exception.rs +++ b/src/errors/validation_exception.rs @@ -582,7 +582,7 @@ struct ValidationErrorSerializer<'py> { input_type: &'py InputType, } -impl<'py> Serialize for ValidationErrorSerializer<'py> { +impl Serialize for ValidationErrorSerializer<'_> { fn serialize(&self, serializer: S) -> Result where S: Serializer, @@ -614,7 +614,7 @@ struct PyLineErrorSerializer<'py> { input_type: &'py InputType, } -impl<'py> Serialize for PyLineErrorSerializer<'py> { +impl Serialize for PyLineErrorSerializer<'_> { fn serialize(&self, serializer: S) -> Result where S: Serializer, diff --git a/src/input/datetime.rs b/src/input/datetime.rs index 577a91014..ffdd61c91 100644 --- a/src/input/datetime.rs +++ b/src/input/datetime.rs @@ -24,7 +24,7 @@ pub enum EitherDate<'a> { Py(Bound<'a, PyDate>), } -impl<'a> From for EitherDate<'a> { +impl From for EitherDate<'_> { fn from(date: Date) -> Self { Self::Raw(date) } @@ -45,7 +45,7 @@ pub fn pydate_as_date(py_date: &Bound<'_, PyAny>) -> PyResult { }) } -impl<'a> EitherDate<'a> { +impl EitherDate<'_> { pub fn as_raw(&self) -> PyResult { match self { Self::Raw(date) => Ok(date.clone()), @@ -68,7 +68,7 @@ pub enum EitherTime<'a> { Py(Bound<'a, PyTime>), } -impl<'a> From