fix reachable panic in CLI flag handling

This commit is contained in:
Peter Gessler 2025-06-26 16:29:58 -05:00 committed by GitHub
parent 9ee34dc69b
commit 451fb05017
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ pub fn flag(yes: bool, no: bool) -> Option<bool> {
(true, false) => Some(true),
(false, true) => Some(false),
(false, false) => None,
(..) => unreachable!("Clap should make this impossible"),
(true, true) => None,
}
}