We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa635b3 commit bf10e34Copy full SHA for bf10e34
lib/src/lints.rs
@@ -11,6 +11,7 @@ use std::fmt::Write as WriteFmt;
11
use std::os::unix::ffi::OsStrExt;
12
13
use anyhow::Result;
14
+use bootc_utils::PathQuotedDisplay;
15
use camino::{Utf8Path, Utf8PathBuf};
16
use cap_std::fs::Dir;
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)
507
{
508
msg.push_str("Found non-directory/non-symlink files in /var:\n");
- for elt in samples {
509
- writeln!(msg, " {elt:?}")?;
+ for elt in samples.map(PathQuotedDisplay::new) {
510
+ writeln!(msg, " {elt}")?;
511
}
512
if rest > 0 {
513
writeln!(msg, " ...and {} more", rest)?;
0 commit comments