aboutsummaryrefslogtreecommitdiff
path: root/src/config/sidebar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/sidebar.rs')
-rw-r--r--src/config/sidebar.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/sidebar.rs b/src/config/sidebar.rs
index 0b489765..9a4cb5e0 100644
--- a/src/config/sidebar.rs
+++ b/src/config/sidebar.rs
@@ -139,10 +139,10 @@ pub enum SpaceSidebarToken {
}
impl AgentSidebarToken {
- pub(crate) fn style_for_value(&self, value: &str) -> SidebarTokenStyle {
+ pub(crate) fn style_for_value(&self, value: &str) -> Option<SidebarTokenStyle> {
match self {
Self::Styled { style, rules, .. } => rules::matching_style(rules, *style, value),
- _ => SidebarTokenStyle::default(),
+ _ => Some(SidebarTokenStyle::default()),
}
}
@@ -155,10 +155,10 @@ impl AgentSidebarToken {
}
impl SpaceSidebarToken {
- pub(crate) fn style_for_value(&self, value: &str) -> SidebarTokenStyle {
+ pub(crate) fn style_for_value(&self, value: &str) -> Option<SidebarTokenStyle> {
match self {
Self::Styled { style, rules, .. } => rules::matching_style(rules, *style, value),
- _ => SidebarTokenStyle::default(),
+ _ => Some(SidebarTokenStyle::default()),
}
}