diff options
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/deco.rs | 4 | ||||
| -rw-r--r-- | library/src/text/link.rs | 4 | ||||
| -rw-r--r-- | library/src/text/mod.rs | 8 | ||||
| -rw-r--r-- | library/src/text/raw.rs | 2 | ||||
| -rw-r--r-- | library/src/text/shift.rs | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/library/src/text/deco.rs b/library/src/text/deco.rs index fa0f05a7..bc7a312d 100644 --- a/library/src/text/deco.rs +++ b/library/src/text/deco.rs @@ -47,8 +47,8 @@ impl<const L: DecoLine> DecoNode<L> { } impl<const L: DecoLine> Show for DecoNode<L> { - fn unguard_parts(&self, sel: Selector) -> Content { - Self(self.0.unguard(sel)).pack() + fn unguard_parts(&self, id: RecipeId) -> Content { + Self(self.0.unguard(id)).pack() } fn show(&self, _: Tracked<dyn World>, styles: StyleChain) -> SourceResult<Content> { diff --git a/library/src/text/link.rs b/library/src/text/link.rs index 4312559e..b74ca530 100644 --- a/library/src/text/link.rs +++ b/library/src/text/link.rs @@ -50,10 +50,10 @@ impl LinkNode { } impl Show for LinkNode { - fn unguard_parts(&self, sel: Selector) -> Content { + fn unguard_parts(&self, id: RecipeId) -> Content { Self { dest: self.dest.clone(), - body: self.body.as_ref().map(|body| body.unguard(sel)), + body: self.body.as_ref().map(|body| body.unguard(id)), } .pack() } diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs index 86c6884a..a8164727 100644 --- a/library/src/text/mod.rs +++ b/library/src/text/mod.rs @@ -503,8 +503,8 @@ impl StrongNode { } impl Show for StrongNode { - fn unguard_parts(&self, sel: Selector) -> Content { - Self(self.0.unguard(sel)).pack() + fn unguard_parts(&self, id: RecipeId) -> Content { + Self(self.0.unguard(id)).pack() } fn show(&self, _: Tracked<dyn World>, _: StyleChain) -> SourceResult<Content> { @@ -531,8 +531,8 @@ impl EmphNode { } impl Show for EmphNode { - fn unguard_parts(&self, sel: Selector) -> Content { - Self(self.0.unguard(sel)).pack() + fn unguard_parts(&self, id: RecipeId) -> Content { + Self(self.0.unguard(id)).pack() } fn show(&self, _: Tracked<dyn World>, _: StyleChain) -> SourceResult<Content> { diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index 5a98cf3b..c6229d59 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -52,7 +52,7 @@ impl RawNode { } impl Show for RawNode { - fn unguard_parts(&self, _: Selector) -> Content { + fn unguard_parts(&self, _: RecipeId) -> Content { Self { text: self.text.clone(), ..*self }.pack() } diff --git a/library/src/text/shift.rs b/library/src/text/shift.rs index 0f654b5a..a91285bf 100644 --- a/library/src/text/shift.rs +++ b/library/src/text/shift.rs @@ -43,7 +43,7 @@ impl<const S: ShiftKind> ShiftNode<S> { } impl<const S: ShiftKind> Show for ShiftNode<S> { - fn unguard_parts(&self, _: Selector) -> Content { + fn unguard_parts(&self, _: RecipeId) -> Content { Self(self.0.clone()).pack() } |
