1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00
This commit is contained in:
Wez Furlong 2024-05-04 22:24:34 -07:00
parent 7f35aac7a9
commit 030596a2d4
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -731,7 +731,10 @@ impl ColorSchemeFile {
let scheme = Self::from_dynamic(&crate::toml_to_dynamic(value), Default::default()) let scheme = Self::from_dynamic(&crate::toml_to_dynamic(value), Default::default())
.map_err(|e| anyhow::anyhow!("{}", e))?; .map_err(|e| anyhow::anyhow!("{}", e))?;
anyhow::ensure!(scheme.colors.ansi.is_some(), "scheme is missing ANSI colors"); anyhow::ensure!(
scheme.colors.ansi.is_some(),
"scheme is missing ANSI colors"
);
Ok(scheme) Ok(scheme)
} }