Commit bf10e34 1 parent aa635b3 commit bf10e34 Copy full SHA for bf10e34
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ use std::fmt::Write as WriteFmt;
11
11
use std:: os:: unix:: ffi:: OsStrExt ;
12
12
13
13
use anyhow:: Result ;
14
+ use bootc_utils:: PathQuotedDisplay ;
14
15
use camino:: { Utf8Path , Utf8PathBuf } ;
15
16
use cap_std:: fs:: Dir ;
16
17
use cap_std_ext:: cap_std;
@@ -505,8 +506,8 @@ fn check_var_tmpfiles(_root: &Dir) -> LintResult {
505
506
bootc_utils:: iterator_split_nonempty_rest_count ( r. unsupported . iter ( ) , 5 )
506
507
{
507
508
msg. push_str ( "Found non-directory/non-symlink files in /var:\n " ) ;
508
- for elt in samples {
509
- writeln ! ( msg, " {elt:? }" ) ?;
509
+ for elt in samples. map ( PathQuotedDisplay :: new ) {
510
+ writeln ! ( msg, " {elt}" ) ?;
510
511
}
511
512
if rest > 0 {
512
513
writeln ! ( msg, " ...and {} more" , rest) ?;
You can’t perform that action at this time.
0 commit comments