diff --git a/src/syntax/node.rs b/src/syntax/node.rs index a4c0ee6..28ed4d1 100644 --- a/src/syntax/node.rs +++ b/src/syntax/node.rs @@ -445,7 +445,7 @@ impl SyntaxNode { /// Returns the data associated with this node, if any. pub fn get_data(&self) -> Option> { let ptr = self.data().data.read(); - (*ptr).as_ref().map(|ptr| Arc::clone(ptr)) + (*ptr).as_ref().map(Arc::clone) } /// Removes the data associated with this node.