mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
improve the default constructor mode when filling fields
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
parent
0ee4e6a22d
commit
6344eea242
3 changed files with 19 additions and 5 deletions
|
@ -81,6 +81,9 @@ pub mod ext {
|
|||
pub fn default_bool() -> ast::Expr {
|
||||
expr_from_text("false")
|
||||
}
|
||||
pub fn option_none() -> ast::Expr {
|
||||
expr_from_text("None")
|
||||
}
|
||||
pub fn empty_block_expr() -> ast::BlockExpr {
|
||||
block_expr(None, None)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue