File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ impl Component {
2626 }
2727 }
2828
29- pub fn args ( & self ) -> Args {
29+ pub fn args ( & ' _ self ) -> Args < ' _ > {
3030 match self {
3131 Component :: Shortcut ( text) => match text. split_once ( '=' ) . map ( |( _, item) | item) {
3232 Some ( args) => Args :: Shortcut ( Some ( args) ) ,
Original file line number Diff line number Diff line change 11use std:: borrow:: Cow ;
22
33pub trait Digester < M > {
4- fn digest ( & self , input : & M ) -> Cow < [ u8 ] > ;
4+ fn digest < ' a > ( & self , input : & ' a M ) -> Cow < ' a , [ u8 ] > ;
55}
66
77#[ derive( Debug , Clone , Copy , Default ) ]
88pub struct DefaultDigester ;
99
1010impl < M > Digester < M > for DefaultDigester {
11- fn digest ( & self , _: & M ) -> Cow < [ u8 ] > {
11+ fn digest < ' b > ( & self , _: & ' b M ) -> Cow < ' b , [ u8 ] > {
1212 const BYTES : & [ u8 ; 0 ] = & [ ] ;
1313 Cow :: from ( BYTES )
1414 }
You can’t perform that action at this time.
0 commit comments