Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(IGNORE) Remove redundant imports #195

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/tests/xmp_core_coverage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions src/tests/xmp_date_time_chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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};
Expand Down
2 changes: 0 additions & 2 deletions src/tests/xmp_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3144,8 +3144,6 @@ mod set_localized_text {
}

mod sort {
use std::string::ToString;

use crate::{xmp_ns, XmpError, XmpErrorType, XmpMeta};

#[test]
Expand Down
3 changes: 0 additions & 3 deletions src/xmp_date_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion src/xmp_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
Loading