diff options
author | Akshay <[email protected]> | 2021-11-04 11:36:02 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2021-11-04 11:36:02 +0000 |
commit | 07d39899d32ed4c7ae822e98f4a8b28c72c48a99 (patch) | |
tree | 93968790365f238e8138669182cefab764ceae31 /lib/src/make.rs | |
parent | 5b87c6feb3e4a2fcc30ad94125be3dcd4e554754 (diff) |
new lint: deprecated_is_null
Diffstat (limited to 'lib/src/make.rs')
-rw-r--r-- | lib/src/make.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/src/make.rs b/lib/src/make.rs index 44adae6..c36fa7e 100644 --- a/lib/src/make.rs +++ b/lib/src/make.rs | |||
@@ -83,3 +83,8 @@ pub fn ident(text: &str) -> types::Ident { | |||
83 | pub fn empty() -> types::Root { | 83 | pub fn empty() -> types::Root { |
84 | ast_from_text("") | 84 | ast_from_text("") |
85 | } | 85 | } |
86 | |||
87 | // TODO: make `op` strongly typed here | ||
88 | pub fn binary(lhs: &SyntaxNode, op: &str, rhs: &SyntaxNode) -> types::BinOp { | ||
89 | ast_from_text(&format!("{} {} {}", lhs, op, rhs)) | ||
90 | } | ||