MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-cli/src/commands/change/types.rs:28–34  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

26
27impl std::fmt::Display for ChangeFormat {
28 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29 match self {
30 ChangeFormat::Default => write!(f, "default"),
31 ChangeFormat::Short => write!(f, "short"),
32 ChangeFormat::Json => write!(f, "json"),
33 }
34 }
35}
36
37impl std::str::FromStr for ChangeFormat {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected