diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-17 16:27:40 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-17 18:18:47 +0100 |
| commit | af7fe4d76083c597ec2198a73383b9e3899d75ea (patch) | |
| tree | cb3b9766ee15dbfbecf7f9b9a2257859d7a7b3c7 /src/model/content.rs | |
| parent | 6d64d3e8e9123f3fa8166c8b710e2b2c61ed5898 (diff) | |
Hover and autocomplete in show rules
Diffstat (limited to 'src/model/content.rs')
| -rw-r--r-- | src/model/content.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/model/content.rs b/src/model/content.rs index bd24829d..5317236e 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -4,7 +4,6 @@ use std::hash::{Hash, Hasher}; use std::iter::{self, Sum}; use std::ops::{Add, AddAssign, Deref}; -use comemo::Tracked; use ecow::{eco_format, EcoString, EcoVec}; use once_cell::sync::Lazy; @@ -19,7 +18,6 @@ use crate::eval::{ }; use crate::syntax::Span; use crate::util::pretty_array_like; -use crate::World; /// Composable representation of styled content. #[derive(Clone, Hash)] @@ -219,13 +217,9 @@ impl Content { } /// Style this content with a recipe, eagerly applying it if possible. - pub fn styled_with_recipe( - self, - world: Tracked<dyn World>, - recipe: Recipe, - ) -> SourceResult<Self> { + pub fn styled_with_recipe(self, vm: &mut Vm, recipe: Recipe) -> SourceResult<Self> { if recipe.selector.is_none() { - recipe.apply(world, self) + recipe.apply_vm(vm, self) } else { Ok(self.styled(Style::Recipe(recipe))) } |
