Add unreachable context

Better error for #123
imgbot
Ivan Tham 3 years ago committed by GitHub
parent 407b37c327
commit 6254720f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -199,7 +199,7 @@ fn categorize(ch: char) -> Category {
} else if ch.is_ascii_punctuation() {
Category::Punctuation
} else {
unreachable!()
unreachable!("unknown '{}' character category", ch)
}
}

Loading…
Cancel
Save