From af7fe4d76083c597ec2198a73383b9e3899d75ea Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 17 Mar 2023 16:27:40 +0100 Subject: Hover and autocomplete in show rules --- src/model/content.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/model/content.rs') 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, - recipe: Recipe, - ) -> SourceResult { + pub fn styled_with_recipe(self, vm: &mut Vm, recipe: Recipe) -> SourceResult { if recipe.selector.is_none() { - recipe.apply(world, self) + recipe.apply_vm(vm, self) } else { Ok(self.styled(Style::Recipe(recipe))) } -- cgit v1.2.3