rust-analyzer / rowan

Apache License 2.0
704 stars 58 forks source link

Replace `SyntaxKind` with `Into<SyntaxKind>` in function parameters #145

Open spencerwhite opened 1 year ago

spencerwhite commented 1 year ago

It would be much more convenient to write builder.start_node(Ast::Expr) than builder.start_node(Ast::Expr.into()), assuming there is an impl From<Ast> for SyntaxKind somewhere. Obviously not a huge deal, but it would slightly cut down on boilerplate.