summaryrefslogtreecommitdiff
path: root/src/eval/func.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/func.rs')
-rw-r--r--src/eval/func.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eval/func.rs b/src/eval/func.rs
index 3eae453e..fcd19326 100644
--- a/src/eval/func.rs
+++ b/src/eval/func.rs
@@ -1,4 +1,3 @@
-use std::any::TypeId;
use std::fmt::{self, Debug, Formatter, Write};
use std::hash::{Hash, Hasher};
use std::sync::Arc;
@@ -52,7 +51,7 @@ impl Func {
show: if T::SHOWABLE {
Some(|recipe, span| {
let mut styles = StyleMap::new();
- styles.set_recipe(TypeId::of::<T>(), recipe, span);
+ styles.set_recipe::<T>(recipe, span);
styles
})
} else {