diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-02-03 12:22:02 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-02-03 12:22:02 +0100 |
| commit | 3150fd56437ecf8b2a5902c18e3f9ace800b768c (patch) | |
| tree | db8a7e9fc868145804db97da81bd0669aaf55454 /src/library | |
| parent | 40ea35cbe7482ce04096c4d63a848c8601cc1848 (diff) | |
Better Debug/Display and Derives 🧽
Diffstat (limited to 'src/library')
| -rw-r--r-- | src/library/mod.rs | 1 | ||||
| -rw-r--r-- | src/library/spacing.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index 1a36fcc7..f6666174 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -1,6 +1,5 @@ //! The _Typst_ standard library. -use toddle::query::FontProvider; use crate::syntax::Scope; use crate::func::prelude::*; diff --git a/src/library/spacing.rs b/src/library/spacing.rs index b948153d..d77285c5 100644 --- a/src/library/spacing.rs +++ b/src/library/spacing.rs @@ -67,7 +67,7 @@ function! { /// The different kinds of content that can be spaced. Used as a metadata type /// for the [`ContentSpacingFunc`]. -#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] #[allow(missing_docs)] pub enum ContentKind { Word, |
