MCPcopy Create free account
hub / github.com/archlinux/alpm / fmt

Method fmt

alpm-mtree/src/mtree/path_validation_error.rs:57–71  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

55
56impl Display for PathValidationErrors {
57 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58 write!(
59 f,
60 "{}",
61 t!("error-path-validation-errors", {
62 "base_dir" => self.base_dir.display().to_string(),
63 "errors" => self
64 .errors
65 .iter()
66 .map(|e| e.to_string())
67 .collect::<Vec<_>>()
68 .join("\n")
69 })
70 )
71 }
72}
73
74/// The error that can occur when comparing [`Mtree`] paths with paths on a file system.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected