Skip to content

Commit 2f9587f

Browse files
authored
Merge branch 'master' into dependabot/cargo/colored-2.0.0
2 parents 39af779 + 53b25ed commit 2f9587f

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

Cargo.lock

+17-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ priority = "optional"
2020

2121
[dependencies]
2222
colored= "2.0.0"
23-
git2 = {version = "0.13.6", default-features = false}
23+
git2 = {version = "0.13.10", default-features = false}
2424
tokei = "12.0.0"
2525
askalono = "0.4.2"
2626
bytecount = "0.6.0"
2727
clap = "2.33.3"
28-
strum = "0.18.0"
29-
strum_macros = "0.18.0"
28+
strum = { version = "0.19.2", features = ["derive"] }
3029
image = "0.23.5"
3130
regex = "1"
3231
futures = "0.3.5"

src/language.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use {
33
colored::Color,
44
regex::Regex,
55
std::collections::HashMap,
6+
strum::{EnumIter, EnumString},
67
};
78

89
#[derive(PartialEq, Eq, Hash, Clone, EnumString, EnumIter)]

src/main.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#[macro_use]
22
extern crate clap;
3-
#[macro_use]
4-
extern crate strum_macros;
53

64
#[cfg(target_os = "linux")]
75
use image_backends::ImageBackend;
@@ -19,7 +17,7 @@ use {
1917
result,
2018
str::FromStr,
2119
},
22-
strum::{EnumCount, IntoEnumIterator},
20+
strum::{EnumCount, EnumIter, EnumString, IntoEnumIterator, IntoStaticStr},
2321
};
2422

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

0 commit comments

Comments
 (0)