File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/formatter/pattern_formatter Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ fn impl_manually() {
66
66
}
67
67
68
68
// Building a custom formatter.
69
- let new_formatter: Box < MyFormatter > = Box :: new ( MyFormatter :: default ( ) ) ;
69
+ let new_formatter: Box < MyFormatter > = Box :: default ( ) ;
70
70
71
71
// Setting the new formatter for each sink of the default logger.
72
72
for sink in spdlog:: default_logger ( ) . sinks ( ) {
Original file line number Diff line number Diff line change @@ -1249,11 +1249,13 @@ pub mod tests {
1249
1249
1250
1250
#[ test]
1251
1251
fn test_pattern_ref_as_pattern ( ) {
1252
+ #[ allow( clippy:: needless_borrow) ]
1252
1253
test_pattern ( & String :: from ( "literal" ) , "literal" , None ) ;
1253
1254
}
1254
1255
1255
1256
#[ test]
1256
1257
fn test_pattern_mut_as_pattern ( ) {
1258
+ #[ allow( clippy:: needless_borrow) ]
1257
1259
test_pattern ( & mut String :: from ( "literal" ) , "literal" , None ) ;
1258
1260
}
1259
1261
You can’t perform that action at this time.
0 commit comments