(&self, f: &mut fmt::Formatter<'_>)
| 45 | Io(std::io::Error), |
| 46 | Compile(String), |
| 47 | Assemble(String), |
| 48 | Runtime(String), |
| 49 | Timeout(u64), |
| 50 | } |
| 51 | |
| 52 | impl 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}"), |
nothing calls this directly
no outgoing calls
no test coverage detected