Skip to content

Commit

Permalink
Merge pull request #187 from o2sh/dependabot/cargo/strum-0.19.2
Browse files Browse the repository at this point in the history
Bump strum from 0.18.0 to 0.19.2
  • Loading branch information
o2sh authored Aug 24, 2020
2 parents 0e2aebf + 366e26d commit 547bf25
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
14 changes: 8 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ tokei = "12.0.0"
askalono = "0.4.2"
bytecount = "0.6.0"
clap = "2.33.3"
strum = "0.18.0"
strum_macros = "0.18.0"
strum = { version = "0.19.2", features = ["derive"] }
image = "0.23.5"
regex = "1"
futures = "0.3.5"
Expand Down
1 change: 1 addition & 0 deletions src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use {
colored::Color,
regex::Regex,
std::collections::HashMap,
strum::{EnumIter, EnumString},
};

#[derive(PartialEq, Eq, Hash, Clone, EnumString, EnumIter)]
Expand Down
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#[macro_use]
extern crate clap;
#[macro_use]
extern crate strum_macros;

#[cfg(target_os = "linux")]
use image_backends::ImageBackend;
Expand All @@ -19,7 +17,7 @@ use {
result,
str::FromStr,
},
strum::{EnumCount, IntoEnumIterator},
strum::{EnumCount, EnumIter, EnumString, IntoEnumIterator, IntoStaticStr},
};

mod ascii_art;
Expand Down Expand Up @@ -126,7 +124,7 @@ fn main() -> Result<()> {
.help("Allows you to disable an info line from appearing in the output.")
.possible_values(
&InfoFields::iter()
.take(InfoFields::count() - 1)
.take(InfoFields::COUNT - 1)
.map(|field| field.into())
.collect::<Vec<&str>>()
.as_slice(),
Expand Down

0 comments on commit 547bf25

Please sign in to comment.