1
Fork 0
mirror of https://github.com/RGBCube/cstree synced 2025-07-27 09:07:44 +00:00

Merge pull request #32 from domenicquirl/fix/clippy

This commit is contained in:
DQ 2022-01-12 20:52:38 +01:00 committed by GitHub
commit f9cae1fa5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -445,7 +445,7 @@ impl<L: Language, D> SyntaxNode<L, D> {
/// Returns the data associated with this node, if any.
pub fn get_data(&self) -> Option<Arc<D>> {
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.