Some clippy fixes for 1.36
This commit is contained in:
@@ -357,7 +357,7 @@ impl SyntaxNode {
|
||||
// `range` private afterwards
|
||||
let mut ptr = SyntaxNodePtr::new(self);
|
||||
ptr.range = TextRange::offset_len(ptr.range().start(), len);
|
||||
return ptr.to_node(file.syntax()).to_owned();
|
||||
ptr.to_node(file.syntax()).to_owned()
|
||||
}
|
||||
|
||||
fn position_of_child(&self, child: SyntaxElement) -> usize {
|
||||
|
||||
Reference in New Issue
Block a user