fix: correct feature flag typo for termwiz (#1088)

underline-color was incorrectly spelt as underline_color
This commit is contained in:
Josh McKinney 2024-05-04 23:43:24 -07:00 committed by GitHub
parent 4d1784f2de
commit 5f1e119563
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,7 +271,7 @@ impl From<CellAttributes> for Style {
style.fg = Some(value.foreground().into());
style.bg = Some(value.background().into());
#[cfg(feature = "underline_color")]
#[cfg(feature = "underline-color")]
{
style.underline_color = Some(value.underline_color().into());
}
@ -600,7 +600,7 @@ mod tests {
Style::new().fg(Color::Reset).bg(Color::Indexed(31))
);
// underline color
#[cfg(feature = "underline_color")]
#[cfg(feature = "underline-color")]
assert_eq!(
Style::from(
CellAttributes::default()