Skip to content

Commit 0f02da7

Browse files
authored
chore: Move deprecated annotations to fix a Clippy warning (#391)
* chore: Move deprecated annotations to fix a Clippy warning Signed-off-by: Chris Hennick <[email protected]> * chore: Remove the annotations, since moving them doesn't fix the error Signed-off-by: Chris Hennick <[email protected]> --------- Signed-off-by: Chris Hennick <[email protected]>
1 parent 86ca38b commit 0f02da7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/types.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,6 @@ impl DateTime {
440440
impl TryFrom<OffsetDateTime> for DateTime {
441441
type Error = DateTimeRangeError;
442442

443-
#[allow(useless_deprecated)]
444-
#[deprecated(
445-
since = "2.5.0",
446-
note = "use `TryFrom<PrimitiveDateTime> for DateTime` instead"
447-
)]
448443
fn try_from(dt: OffsetDateTime) -> Result<Self, Self::Error> {
449444
Self::try_from(PrimitiveDateTime::new(dt.date(), dt.time()))
450445
}
@@ -470,11 +465,6 @@ impl TryFrom<PrimitiveDateTime> for DateTime {
470465
impl TryFrom<DateTime> for OffsetDateTime {
471466
type Error = ComponentRange;
472467

473-
#[allow(useless_deprecated)]
474-
#[deprecated(
475-
since = "2.5.0",
476-
note = "use `TryFrom<DateTime> for PrimitiveDateTime` instead"
477-
)]
478468
fn try_from(dt: DateTime) -> Result<Self, Self::Error> {
479469
PrimitiveDateTime::try_from(dt).map(PrimitiveDateTime::assume_utc)
480470
}

0 commit comments

Comments
 (0)