summaryrefslogtreecommitdiff
path: root/src/model/styles.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/styles.rs')
-rw-r--r--src/model/styles.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs
index db2b2053..82ec2ed5 100644
--- a/src/model/styles.rs
+++ b/src/model/styles.rs
@@ -71,8 +71,8 @@ impl Styles {
pub fn interruption<T: Element>(&self) -> Option<Option<Span>> {
let func = T::func();
self.0.iter().find_map(|entry| match entry {
- Style::Property(property) => property.is_of(func).then(|| property.span),
- Style::Recipe(recipe) => recipe.is_of(func).then(|| Some(recipe.span)),
+ Style::Property(property) => property.is_of(func).then_some(property.span),
+ Style::Recipe(recipe) => recipe.is_of(func).then_some(Some(recipe.span)),
})
}
}