From 856b42ac9bfe607da4ea54eaea4e5c6d3ec0ae51 Mon Sep 17 00:00:00 2001 From: Domenic Quirl Date: Wed, 12 Jan 2022 20:41:33 +0100 Subject: [PATCH] fix `redundant_closure` in `syntax/node.rs` --- src/syntax/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.