MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / fmt

Method fmt

src/cli/main.rs:47–55  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

45 Io(std::io::Error),
46 Compile(String),
47 Assemble(String),
48 Runtime(String),
49 Timeout(u64),
50}
51
52impl fmt::Display for CliError {
53 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
54 match self {
55 Self::Usage(msg) => write!(f, "{msg}"),
56 Self::Io(err) => write!(f, "I/O error: {err}"),
57 Self::Compile(msg) => write!(f, "compilation error: {msg}"),
58 Self::Assemble(msg) => write!(f, "linker/assembler error: {msg}"),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected