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:
parent
706db2650d
commit
929e86225d
@ -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)?))
|
||||
|
Loading…
Reference in New Issue
Block a user