Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,13 @@ pub enum Styles {
impl Styles {
const fn to_str<'a>(self) -> &'a str {
match self {
Self::Clear => "", // unreachable, but we don't want to panic
Self::Clear => {
debug_assert!(
false,
"unreachable, but we don't want to panic in release mode"
);
""
}
Self::Bold => "1",
Self::Dimmed => "2",
Self::Italic => "3",
Expand Down