File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " colored"
3
3
description = " The most simple way to add colors in your terminal"
4
- version = " 2.1 .0"
4
+ version = " 2.2 .0"
5
5
edition = " 2021"
6
6
authors = [
" Thomas Wickham <[email protected] >" ]
7
7
license = " MPL-2.0"
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ impl Color {
199
199
}
200
200
}
201
201
202
- impl < ' a > From < & ' a str > for Color {
202
+ impl From < & str > for Color {
203
203
fn from ( src : & str ) -> Self {
204
204
src. parse ( ) . unwrap_or ( Color :: White )
205
205
}
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ impl Colorize for ColoredString {
655
655
}
656
656
}
657
657
658
- impl < ' a > Colorize for & ' a str {
658
+ impl Colorize for & str {
659
659
fn color < S : Into < Color > > ( self , color : S ) -> ColoredString {
660
660
ColoredString {
661
661
fgcolor : Some ( color. into ( ) ) ,
You can’t perform that action at this time.
0 commit comments