aboutsummaryrefslogtreecommitdiff
path: root/lib/src/make.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-27 15:20:52 +0100
committerAkshay <[email protected]>2021-10-27 20:03:48 +0100
commit8eccf15964e09c2e024710512e671c6b1b88e885 (patch)
treeda902a799840c3031f2ca68e3be39e3f101b05eb /lib/src/make.rs
parentf909b20c540ea99dddfd04b8439ee35b8dd703b8 (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.rs4
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
27pub fn quote(node: &SyntaxNode) -> types::Str {
28 ast_from_text(&format!("\"{}\"", node))
29}
30
27pub fn unary_not(node: &SyntaxNode) -> types::UnaryOp { 31pub fn unary_not(node: &SyntaxNode) -> types::UnaryOp {
28 ast_from_text(&format!("!{}", node)) 32 ast_from_text(&format!("!{}", node))
29} 33}