diff options
Diffstat (limited to 'crates/typst-library/src/routines.rs')
| -rw-r--r-- | crates/typst-library/src/routines.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/typst-library/src/routines.rs b/crates/typst-library/src/routines.rs index 4bf8d60c..6db99ba5 100644 --- a/crates/typst-library/src/routines.rs +++ b/crates/typst-library/src/routines.rs @@ -1,3 +1,4 @@ +use std::fmt::{self, Debug, Formatter}; use std::hash::{Hash, Hasher}; use comemo::{Tracked, TrackedMut}; @@ -38,6 +39,12 @@ macro_rules! routines { impl Hash for Routines { fn hash<H: Hasher>(&self, _: &mut H) {} } + + impl Debug for Routines { + fn fmt(&self, f: &mut Formatter) -> fmt::Result { + f.pad("Routines(..)") + } + } }; } |
