Skip to content

Commit

Permalink
merge branch 'podwriter-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Jun 30, 2024
2 parents 6e9c627 + ffcc5f8 commit de6a0eb
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 23 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ version = "0.9.0"
chrono = "0.4.38"
regex = "1.10.5"
roxmltree = "0.20.0"
strum = "0.26.3"
strum_macros = "0.26.4"
strum = { version = "0.26", features = ["derive"] }
time = { version = "0.3.36" }
url = "2.5.2"

Expand Down
2 changes: 1 addition & 1 deletion src/itunes.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::strings::Url;
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

mod category;
pub use category::{CategoryName, SubcategoryName};
Expand Down
3 changes: 1 addition & 2 deletions src/itunes/category.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ use crate::utils;
use crate::Other;
use std::fmt;
use std::str::FromStr;
use strum::EnumProperty;
use strum_macros::{EnumIter, EnumProperty};
use strum::{EnumIter, EnumProperty};

/// Apple Podcasts podcast category names.
#[derive(Debug, PartialEq, Eq, EnumProperty, EnumIter)]
Expand Down
3 changes: 1 addition & 2 deletions src/language.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::Other;
use std::str::FromStr;
use strum::{EnumProperty, IntoEnumIterator};
use strum_macros::{Display, EnumIter, EnumProperty, EnumString};
use strum::{Display, EnumIter, EnumProperty, EnumString, IntoEnumIterator};

/// Used for deserializing languages.
///
Expand Down
3 changes: 1 addition & 2 deletions src/mime.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::utils;
use crate::Other;
use strum::EnumProperty;
use strum_macros::{EnumIter, EnumProperty};
use strum::{EnumIter, EnumProperty};

/// Used for deserializing mime types of enclosures.
#[derive(Debug, PartialEq, Eq, EnumProperty, EnumIter)]
Expand Down
3 changes: 1 addition & 2 deletions src/podcast/alternate_enclosure.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::utils;
use crate::Other;
use strum::EnumProperty;
use strum_macros::{EnumIter, EnumProperty};
use strum::{EnumIter, EnumProperty};

/// Type of [Integrity](crate::podcast::Integrity).
#[derive(Debug, PartialEq, Eq, EnumProperty, EnumIter)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/block.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

/// Podcast platforms.
///
Expand Down
3 changes: 1 addition & 2 deletions src/podcast/license.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::utils;
use crate::Other;
use strum::EnumProperty;
use strum_macros::{EnumIter, EnumProperty};
use strum::{EnumIter, EnumProperty};

/// Type of [License](crate::podcast::License).
#[derive(Debug, PartialEq, Eq, EnumProperty, EnumIter)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/live_item.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

/// Status of [LiveItem](crate::podcast::LiveItem).
#[derive(Debug, PartialEq, Eq, EnumIter)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/location.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::basic::{Float, NumberConstraint};
use crate::Other;
use strum_macros::{Display, EnumString};
use strum::{Display, EnumString};

/// Geographical coordinates.
#[derive(Debug, PartialEq, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/medium.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

/// Medium of the feed.
#[derive(Debug, PartialEq, Eq, EnumIter)]
Expand Down
3 changes: 1 addition & 2 deletions src/podcast/person.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::utils;
use crate::Other;
use strum::EnumProperty;
use strum_macros::{EnumIter, EnumProperty};
use strum::{EnumIter, EnumProperty};

/// Group (as defined by [Podcast Taxonomy Project](https://podcasttaxonomy.com)) of [Person](crate::podcast::Person).
#[derive(Debug, PartialEq, Eq, EnumProperty, EnumIter)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/social_interact.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

/// Social protocols that can be used in [SocialInteract](crate::podcast::SocialInteract).
#[derive(Debug, PartialEq, Eq, EnumIter)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/transcript.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

/// Used for deserializing `rel` attribute of [Transcript](crate::podcast::Transcript).
#[derive(Debug, PartialEq, Eq, EnumIter)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/txt.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

/// Allowed purposes for [Txt](crate::podcast::Txt).
#[derive(Debug, PartialEq, Eq, EnumIter)]
Expand Down
2 changes: 1 addition & 1 deletion src/podcast/value.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::utils;
use crate::Other;
use strum_macros::EnumIter;
use strum::EnumIter;

/// Type of [Value](crate::podcast::Value).
#[derive(Debug, PartialEq, Eq, EnumIter)]
Expand Down

0 comments on commit de6a0eb

Please sign in to comment.