mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Remove doc using cargo xtask codegen
.
This commit is contained in:
parent
1fae96a8d4
commit
6594235dd8
@ -259,30 +259,6 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## `change_lifetime_anon_to_named`
|
|
||||||
|
|
||||||
Change an anonymous lifetime to a named lifetime.
|
|
||||||
|
|
||||||
```rust
|
|
||||||
// BEFORE
|
|
||||||
impl Cursor<'_<|>> {
|
|
||||||
fn node(self) -> &SyntaxNode {
|
|
||||||
match self {
|
|
||||||
Cursor::Replace(node) | Cursor::Before(node) => node,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AFTER
|
|
||||||
impl<'a> Cursor<'a> {
|
|
||||||
fn node(self) -> &SyntaxNode {
|
|
||||||
match self {
|
|
||||||
Cursor::Replace(node) | Cursor::Before(node) => node,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## `change_return_type_to_result`
|
## `change_return_type_to_result`
|
||||||
|
|
||||||
Change the function's return type to Result.
|
Change the function's return type to Result.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user