File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " colored"
33description = " The most simple way to add colors in your terminal"
4- version = " 2.1 .0"
4+ version = " 2.2 .0"
55edition = " 2021"
66authors = [
" Thomas Wickham <[email protected] >" ]
77license = " MPL-2.0"
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ( ) ) ,
You can’t perform that action at this time.
0 commit comments