Skip to content

Commit ef1484c

Browse files
authored
2.2.0 (#186)
* Update to 2.2.0 * Resolve clippy warnings Warnings added in a later version of clippy.
1 parent 1bb63e4 commit ef1484c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "colored"
33
description = "The most simple way to add colors in your terminal"
4-
version = "2.1.0"
4+
version = "2.2.0"
55
edition = "2021"
66
authors = ["Thomas Wickham <[email protected]>"]
77
license = "MPL-2.0"

src/color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl Color {
199199
}
200200
}
201201

202-
impl<'a> From<&'a str> for Color {
202+
impl From<&str> for Color {
203203
fn from(src: &str) -> Self {
204204
src.parse().unwrap_or(Color::White)
205205
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ impl Colorize for ColoredString {
655655
}
656656
}
657657

658-
impl<'a> Colorize for &'a str {
658+
impl Colorize for &str {
659659
fn color<S: Into<Color>>(self, color: S) -> ColoredString {
660660
ColoredString {
661661
fgcolor: Some(color.into()),

0 commit comments

Comments
 (0)