Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ptr.rs')
-rw-r--r--crates/syntax/src/ptr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax/src/ptr.rs b/crates/syntax/src/ptr.rs
index 8750147ee1..b716d36706 100644
--- a/crates/syntax/src/ptr.rs
+++ b/crates/syntax/src/ptr.rs
@@ -36,7 +36,7 @@ impl<N: AstNode + std::fmt::Debug> std::fmt::Debug for AstPtr<N> {
impl<N: AstNode> Copy for AstPtr<N> {}
impl<N: AstNode> Clone for AstPtr<N> {
fn clone(&self) -> AstPtr<N> {
- AstPtr { raw: self.raw.clone(), _ty: PhantomData }
+ AstPtr { raw: self.raw, _ty: PhantomData }
}
}
@@ -65,7 +65,7 @@ impl<N: AstNode> AstPtr<N> {
}
pub fn syntax_node_ptr(&self) -> SyntaxNodePtr {
- self.raw.clone()
+ self.raw
}
pub fn text_range(&self) -> TextRange {