(s: &str)
| 73 | |
| 74 | impl MessageDensity { |
| 75 | pub fn from_str_lossy(s: &str) -> Self { |
| 76 | if s.eq_ignore_ascii_case("cozy") { |
| 77 | Self::Cozy |
| 78 | } else { |
| 79 | Self::Compact |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | pub fn as_str(self) -> &'static str { |
| 84 | match self { |
nothing calls this directly
no outgoing calls
no test coverage detected