diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-01 16:30:58 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-01 16:33:28 +0100 |
| commit | 6ab7760822ccd24b4ef126d4737d41f1be15fe19 (patch) | |
| tree | 49905f91d292ceefe4f9878ead43f117c4b1fec0 /src/model/content.rs | |
| parent | ab841188e3d2687ee8f436336e6fde337985a83e (diff) | |
Split up `model` module
Diffstat (limited to 'src/model/content.rs')
| -rw-r--r-- | src/model/content.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/model/content.rs b/src/model/content.rs index b8047ffa..b10a3409 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -10,11 +10,9 @@ use ecow::{EcoString, EcoVec}; use siphasher::sip128::{Hasher128, SipHasher}; use typst_macros::node; -use super::{ - capability, capable, Args, Guard, Key, ParamInfo, Property, Recipe, Style, StyleMap, - Value, Vm, -}; +use super::{capability, capable, Guard, Key, Property, Recipe, Style, StyleMap}; use crate::diag::{SourceResult, StrResult}; +use crate::eval::{Args, ParamInfo, Value, Vm}; use crate::syntax::Span; use crate::util::ReadableTypeId; use crate::World; @@ -243,7 +241,7 @@ impl Content { } /// Whether a label can be attached to the content. - pub(super) fn labellable(&self) -> bool { + pub(crate) fn labellable(&self) -> bool { !self.has::<dyn Unlabellable>() } |
