aboutsummaryrefslogtreecommitdiff
path: root/lib/src/make.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-03 12:27:34 +0100
committerAkshay <[email protected]>2021-10-03 12:28:38 +0100
commitfc6409142e68335addc65763a1733526130256b0 (patch)
treee39163c7705268645b4afcb042d1bc59faec80b9 /lib/src/make.rs
parentc5c4b55c2b3a3fb824c3fd64e33bb30f1b011b71 (diff)
new lint: collapsible_let_in
Diffstat (limited to 'lib/src/make.rs')
-rw-r--r--lib/src/make.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/src/make.rs b/lib/src/make.rs
index 2a6450c..aec32d5 100644
--- a/lib/src/make.rs
+++ b/lib/src/make.rs
@@ -75,3 +75,7 @@ pub fn select(set: &SyntaxNode, index: &SyntaxNode) -> types::Select {
75pub fn ident(text: &str) -> types::Ident { 75pub fn ident(text: &str) -> types::Ident {
76 ast_from_text(text) 76 ast_from_text(text)
77} 77}
78
79pub fn empty() -> types::Root {
80 ast_from_text("")
81}