From 3f5e47c953d003b5fa6798441616556bc0e9e63c Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Tue, 20 Feb 2024 21:33:35 -0800 Subject: [PATCH] (IGNORE) Remove redundant imports (#195) Co-authored-by: scouten-adobe --- src/tests/xmp_core_coverage.rs | 5 +---- src/tests/xmp_date_time_chrono.rs | 4 ---- src/tests/xmp_meta.rs | 2 -- src/xmp_date_time.rs | 3 --- src/xmp_value.rs | 2 +- 5 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/tests/xmp_core_coverage.rs b/src/tests/xmp_core_coverage.rs index 3e36a4f..59d659f 100644 --- a/src/tests/xmp_core_coverage.rs +++ b/src/tests/xmp_core_coverage.rs @@ -21,10 +21,7 @@ #![allow(dead_code)] // TEMPORARY while in development -use std::{ - str::FromStr, - string::{String, ToString}, -}; +use std::str::FromStr; use crate::{ tests::fixtures::*, xmp_ns, xmp_value::xmp_prop, FromStrOptions, ItemPlacement, IterOptions, diff --git a/src/tests/xmp_date_time_chrono.rs b/src/tests/xmp_date_time_chrono.rs index fbad670..061ea47 100644 --- a/src/tests/xmp_date_time_chrono.rs +++ b/src/tests/xmp_date_time_chrono.rs @@ -12,8 +12,6 @@ // each license. mod from_date_time { - use std::convert::TryInto; - use chrono::{DateTime, Datelike, FixedOffset, Timelike}; use crate::{DateTimeConvertError, XmpDate, XmpDateTime, XmpTime, XmpTimeZone}; @@ -171,8 +169,6 @@ mod from_date_time { } mod to_date_time { - use std::convert::Into; - use chrono::{FixedOffset, NaiveDate}; use crate::{XmpDate, XmpDateTime, XmpTime, XmpTimeZone}; diff --git a/src/tests/xmp_meta.rs b/src/tests/xmp_meta.rs index b1b37aa..d37dd84 100644 --- a/src/tests/xmp_meta.rs +++ b/src/tests/xmp_meta.rs @@ -3144,8 +3144,6 @@ mod set_localized_text { } mod sort { - use std::string::ToString; - use crate::{xmp_ns, XmpError, XmpErrorType, XmpMeta}; #[test] diff --git a/src/xmp_date_time.rs b/src/xmp_date_time.rs index a2b793e..038b59d 100644 --- a/src/xmp_date_time.rs +++ b/src/xmp_date_time.rs @@ -292,9 +292,6 @@ impl fmt::Display for XmpDateTime { } } -#[cfg(feature = "chrono")] -use std::convert::TryFrom; - #[cfg(feature = "chrono")] use chrono::{DateTime, Datelike, FixedOffset, LocalResult, NaiveDate, Timelike}; #[cfg(feature = "chrono")] diff --git a/src/xmp_value.rs b/src/xmp_value.rs index 1222909..7935fa2 100644 --- a/src/xmp_value.rs +++ b/src/xmp_value.rs @@ -11,7 +11,7 @@ // specific language governing permissions and limitations under // each license. -use std::{convert::From, fmt::Debug}; +use std::fmt::Debug; /// Describes a single property or item in an array property. #[derive(Clone, Debug, Default, Eq, PartialEq)]