Skip to content

Commit

Permalink
2.2.0 (#186)
Browse files Browse the repository at this point in the history
* Update to 2.2.0

* Resolve clippy warnings

Warnings added in a later version of clippy.
  • Loading branch information
spenserblack authored Dec 15, 2024
1 parent 1bb63e4 commit ef1484c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "colored"
description = "The most simple way to add colors in your terminal"
version = "2.1.0"
version = "2.2.0"
edition = "2021"
authors = ["Thomas Wickham <mackwic@gmail.com>"]
license = "MPL-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl Color {
}
}

impl<'a> From<&'a str> for Color {
impl From<&str> for Color {
fn from(src: &str) -> Self {
src.parse().unwrap_or(Color::White)
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ impl Colorize for ColoredString {
}
}

impl<'a> Colorize for &'a str {
impl Colorize for &str {
fn color<S: Into<Color>>(self, color: S) -> ColoredString {
ColoredString {
fgcolor: Some(color.into()),
Expand Down

0 comments on commit ef1484c

Please sign in to comment.