diff options
author | Akshay <[email protected]> | 2021-10-03 12:27:34 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-10-03 12:28:38 +0100 |
commit | fc6409142e68335addc65763a1733526130256b0 (patch) | |
tree | e39163c7705268645b4afcb042d1bc59faec80b9 /lib/src/make.rs | |
parent | c5c4b55c2b3a3fb824c3fd64e33bb30f1b011b71 (diff) |
new lint: collapsible_let_in
Diffstat (limited to 'lib/src/make.rs')
-rw-r--r-- | lib/src/make.rs | 4 |
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 { | |||
75 | pub fn ident(text: &str) -> types::Ident { | 75 | pub fn ident(text: &str) -> types::Ident { |
76 | ast_from_text(text) | 76 | ast_from_text(text) |
77 | } | 77 | } |
78 | |||
79 | pub fn empty() -> types::Root { | ||
80 | ast_from_text("") | ||
81 | } | ||