mirror of
https://github.com/RGBCube/cstree
synced 2025-07-27 17:17:45 +00:00
fix redundant_closure
in syntax/node.rs
This commit is contained in:
parent
1b08c9405e
commit
856b42ac9b
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ impl<L: Language, D> SyntaxNode<L, D> {
|
||||||
/// Returns the data associated with this node, if any.
|
/// Returns the data associated with this node, if any.
|
||||||
pub fn get_data(&self) -> Option<Arc<D>> {
|
pub fn get_data(&self) -> Option<Arc<D>> {
|
||||||
let ptr = self.data().data.read();
|
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.
|
/// Removes the data associated with this node.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue