@@ -45,7 +45,7 @@ mod env_util {
4545 where
4646 Str : Into < Cow < ' str , str > > ,
4747 {
48- let mut outpath: Cow < str > = path. into ( ) ;
48+ let mut outpath: Cow < ' _ , str > = path. into ( ) ;
4949 let path = outpath. clone ( ) ;
5050 for ( match_start, _) in path. match_indices ( ENV_PREFIX ) {
5151 let env_name_start = match_start + ENV_PREFIX_LEN ;
@@ -89,7 +89,7 @@ mod env_util {
8989/// to a file or the console.
9090pub trait Append : fmt:: Debug + Send + Sync + ' static {
9191 /// Processes the provided `Record`.
92- fn append ( & self , record : & Record ) -> anyhow:: Result < ( ) > ;
92+ fn append ( & self , record : & Record < ' _ > ) -> anyhow:: Result < ( ) > ;
9393
9494 /// Flushes all in-flight records.
9595 fn flush ( & self ) ;
@@ -103,7 +103,7 @@ impl Deserializable for dyn Append {
103103}
104104
105105impl < T : Log + fmt:: Debug + ' static > Append for T {
106- fn append ( & self , record : & Record ) -> anyhow:: Result < ( ) > {
106+ fn append ( & self , record : & Record < ' _ > ) -> anyhow:: Result < ( ) > {
107107 self . log ( record) ;
108108 Ok ( ( ) )
109109 }
@@ -159,7 +159,7 @@ mod test {
159159 #[ test]
160160 #[ cfg( any( feature = "file_appender" , feature = "rolling_file_appender" ) ) ]
161161 fn expand_env_vars_tests ( ) {
162- set_var ( "HELLO_WORLD" , "GOOD BYE" ) ;
162+ unsafe { set_var ( "HELLO_WORLD" , "GOOD BYE" ) } ;
163163 #[ cfg( not( target_os = "windows" ) ) ]
164164 let test_cases = vec ! [
165165 ( "$ENV{HOME}" , var( "HOME" ) . unwrap( ) ) ,
0 commit comments