mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
prefer default over new
This commit is contained in:
parent
6ca780700d
commit
2462624a7d
46 changed files with 100 additions and 127 deletions
|
|
@ -231,7 +231,7 @@ fn remove_unnecessary_wrapper(
|
|||
.and_then(Either::<ast::ReturnExpr, ast::StmtList>::cast)?;
|
||||
|
||||
editor = builder.make_editor(parent.syntax());
|
||||
let make = SyntaxFactory::new();
|
||||
let make = SyntaxFactory::with_mappings();
|
||||
|
||||
match parent {
|
||||
Either::Left(ret_expr) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue