diff options
author | Akshay <[email protected]> | 2021-10-27 15:20:52 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-10-27 20:03:48 +0100 |
commit | 8eccf15964e09c2e024710512e671c6b1b88e885 (patch) | |
tree | da902a799840c3031f2ca68e3be39e3f101b05eb /lib/src/make.rs | |
parent | f909b20c540ea99dddfd04b8439ee35b8dd703b8 (diff) |
add 3 new lints, bump to v0.2.3v0.2.3
- empty_pattern
- redundant_pattern_bind
- unquoted_splice
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 217ba12..44adae6 100644 --- a/lib/src/make.rs +++ b/lib/src/make.rs | |||
@@ -24,6 +24,10 @@ pub fn parenthesize(node: &SyntaxNode) -> types::Paren { | |||
24 | ast_from_text(&format!("({})", node)) | 24 | ast_from_text(&format!("({})", node)) |
25 | } | 25 | } |
26 | 26 | ||
27 | pub fn quote(node: &SyntaxNode) -> types::Str { | ||
28 | ast_from_text(&format!("\"{}\"", node)) | ||
29 | } | ||
30 | |||
27 | pub fn unary_not(node: &SyntaxNode) -> types::UnaryOp { | 31 | pub fn unary_not(node: &SyntaxNode) -> types::UnaryOp { |
28 | ast_from_text(&format!("!{}", node)) | 32 | ast_from_text(&format!("!{}", node)) |
29 | } | 33 | } |