File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ fn main() -> ExitCode {
217
217
}
218
218
}
219
219
220
- #[ derive( Copy , Clone ) ]
220
+ #[ derive( Copy , Clone , Debug ) ]
221
221
struct ScanOptions {
222
222
print_module_data : bool ,
223
223
no_mmap : bool ,
@@ -437,8 +437,24 @@ impl std::fmt::Debug for ByteString<'_> {
437
437
438
438
#[ cfg( test) ]
439
439
mod tests {
440
+ use super :: * ;
441
+
440
442
#[ test]
441
443
fn verify_cli ( ) {
442
- super :: build_command ( ) . debug_assert ( ) ;
444
+ build_command ( ) . debug_assert ( ) ;
445
+ }
446
+
447
+ #[ test]
448
+ fn test_types ( ) {
449
+ fn test < T : Clone + std:: fmt:: Debug + Send + Sync > ( t : T ) {
450
+ #[ allow( clippy:: redundant_clone) ]
451
+ let _r = t. clone ( ) ;
452
+ let _r = format ! ( "{:?}" , & t) ;
453
+ }
454
+
455
+ test ( ScanOptions {
456
+ print_module_data : false ,
457
+ no_mmap : false ,
458
+ } ) ;
443
459
}
444
460
}
You can’t perform that action at this time.
0 commit comments