From ab2800b4d8c0ee4a865b4797b75c2cc8bbd5fc82 Mon Sep 17 00:00:00 2001
From: Kyle Bloom <kylejbloom@gmail.com>
Date: Tue, 31 Jan 2023 13:59:45 +0000
Subject: [PATCH] chore: Move use for TryInto to top

---
 src/types.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/types.rs b/src/types.rs
index b6e79097..72873675 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -1,6 +1,6 @@
 //! Types that specify what is contained in a ZIP.
 #[cfg(feature = "time")]
-use std::convert::TryFrom;
+use std::convert::{TryFrom, TryInto};
 #[cfg(not(any(
     all(target_arch = "arm", target_pointer_width = "32"),
     target_arch = "mips",
@@ -173,8 +173,6 @@ impl DateTime {
     #[allow(clippy::result_unit_err)]
     #[deprecated(note = "use `DateTime::try_from()`")]
     pub fn from_time(dt: OffsetDateTime) -> Result<DateTime, ()> {
-        use std::convert::TryInto;
-
         dt.try_into().map_err(|_err| ())
     }