cargo clippy --fix

This commit is contained in:
Johann Hemmann 2024-01-18 13:59:49 +01:00
parent 1ab8c7fd27
commit fad4fa163c
178 changed files with 595 additions and 738 deletions

View file

@ -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 {