1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

cheaper case insensitive compare

This commit is contained in:
Wez Furlong 2023-03-31 21:52:54 -07:00
parent 706db2650d
commit 929e86225d
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -459,7 +459,7 @@ impl TryFrom<String> for IntegratedTitleButtonColor {
type Error = <RgbaColor as TryFrom<String>>::Error;
fn try_from(value: String) -> Result<Self, Self::Error> {
if value.to_lowercase() == "auto" {
if value.eq_ignore_ascii_case("auto") {
Ok(Self::Auto)
} else {
Ok(Self::Custom(RgbaColor::try_from(value)?))