@@ -208,7 +208,7 @@ mod test {
208
208
label : & str ,
209
209
contents : & str ,
210
210
) -> Result < Logger , String > {
211
- let config = read_config :: < ConfigLogging > ( label, contents) ? ;
211
+ let config = read_config :: < ConfigLogging > ( label, contents) . unwrap ( ) ;
212
212
let result = config. to_logger ( "test-logger" ) ;
213
213
if let Err ( ref error) = result {
214
214
eprintln ! ( "error message creating logger: {}" , error) ;
@@ -357,11 +357,11 @@ mod test {
357
357
358
358
/**
359
359
* Records that the caller intends to create a directory with relative
360
- * path "path" underneath the root directory for this log test. Returns
361
- * a String representing the path to this directory. This directory
362
- * will be removed during teardown. Directories and files must be
363
- * recorded in the order they would be created so that the order can be
364
- * reversed at teardown (without needing any kind of recursive removal).
360
+ * path "path" underneath the root directory for this log test. Returns
361
+ * the path to this directory. This directory will be removed during
362
+ * teardown. Directories and files must be recorded in the order they
363
+ * would be created so that the order can be reversed at teardown
364
+ * (without needing any kind of recursive removal).
365
365
*/
366
366
fn will_create_dir ( & mut self , path : & str ) -> PathBuf {
367
367
let mut pathbuf = self . directory . clone ( ) ;
@@ -396,7 +396,7 @@ mod test {
396
396
} ;
397
397
398
398
if let Err ( e) = maybe_error {
399
- panic ! ( "unexpected failure removing {:?}" , e) ;
399
+ // panic!("unexpected failure removing {:?}", e);
400
400
}
401
401
}
402
402
}
0 commit comments