Check os_str_display MSRV instead of feature
This feature was stabilized, so the FormatArgs lints should check if the MSRV of the stabilization is met, rather than checking if the feature is enabled.
This commit is contained in:
parent
02e812af4d
commit
53a1ff70e8
6 changed files with 54 additions and 34 deletions
|
|
@ -25,11 +25,10 @@ fn main() {
|
|||
println!("{}", path.display());
|
||||
println!("{}", path_buf.display());
|
||||
|
||||
// should not fire because feature `os_str_display` is not enabled
|
||||
println!("{:?}", os_str);
|
||||
println!("{:?}", os_string);
|
||||
|
||||
// positive tests
|
||||
println!("{:?}", os_str); //~ unnecessary_debug_formatting
|
||||
println!("{:?}", os_string); //~ unnecessary_debug_formatting
|
||||
|
||||
println!("{:?}", path); //~ unnecessary_debug_formatting
|
||||
println!("{:?}", path_buf); //~ unnecessary_debug_formatting
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue