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

Method fmt

dev-scripts/src/cli.rs:76–90  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

74
75impl Display for TestFileType {
76 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77 write!(
78 f,
79 "{}",
80 match self {
81 Self::BuildInfo => MetadataFileName::BuildInfo.as_ref(),
82 Self::PackageInfo => MetadataFileName::PackageInfo.as_ref(),
83 Self::SrcInfo => SRCINFO_FILE_NAME,
84 Self::MTree => MetadataFileName::Mtree.as_ref(),
85 Self::RemoteDesc | Self::LocalDesc => "desc",
86 Self::RemoteFiles | Self::LocalFiles => "files",
87 Self::Signatures => "sig",
88 }
89 )
90 }
91}
92
93#[derive(Debug, Parser)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected