oxilean_parse/error_impl/severity_traits.rs
1//! # Severity - Trait Implementations
2//!
3//! This module contains trait implementations for `Severity`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::Severity;
12
13impl std::fmt::Display for Severity {
14 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15 match self {
16 Severity::Note => write!(f, "note"),
17 Severity::Warning => write!(f, "warning"),
18 Severity::Error => write!(f, "error"),
19 }
20 }
21}