(&self, f: &mut fmt::Formatter<'_>)
| 32 | |
| 33 | impl fmt::Display for ResolvedDiagnosticLevel { |
| 34 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 35 | f.write_str(match self { |
| 36 | Self::Error => "error", |
| 37 | Self::Warning => "warning", |
| 38 | Self::Advice => "advice", |
| 39 | }) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | #[cfg(feature = "miette")] |