summaryrefslogtreecommitdiff
path: root/crates/typst-syntax/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-syntax/src/node.rs')
-rw-r--r--crates/typst-syntax/src/node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-syntax/src/node.rs b/crates/typst-syntax/src/node.rs
index 14ad018f..b7e1809d 100644
--- a/crates/typst-syntax/src/node.rs
+++ b/crates/typst-syntax/src/node.rs
@@ -767,7 +767,7 @@ impl<'a> LinkedNode<'a> {
}
/// Access to parents and siblings.
-impl<'a> LinkedNode<'a> {
+impl LinkedNode<'_> {
/// Get this node's parent.
pub fn parent(&self) -> Option<&Self> {
self.parent.as_deref()
@@ -825,7 +825,7 @@ pub enum Side {
}
/// Access to leaves.
-impl<'a> LinkedNode<'a> {
+impl LinkedNode<'_> {
/// Get the rightmost non-trivia leaf before this node.
pub fn prev_leaf(&self) -> Option<Self> {
let mut node = self.clone();