From 2a9e20d037424d9c2bc33723c1bbef0a28922d8a Mon Sep 17 00:00:00 2001 From: connorskees Date: Sun, 8 Jan 2023 15:32:26 +0000 Subject: [PATCH] clippy --- .gitignore | 1 + crates/compiler/src/evaluate/visitor.rs | 2 +- crates/static/_index.scss | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 crates/static/_index.scss diff --git a/.gitignore b/.gitignore index 2570e8c..9b8d155 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.css *.exe !input.scss +!crates/static/_index.scss # devops /target diff --git a/crates/compiler/src/evaluate/visitor.rs b/crates/compiler/src/evaluate/visitor.rs index 81b5991..2118017 100644 --- a/crates/compiler/src/evaluate/visitor.rs +++ b/crates/compiler/src/evaluate/visitor.rs @@ -2163,7 +2163,7 @@ impl<'a> Visitor<'a> { let num_named_args = evaluated.named.len(); let has_arg_list = if let Some(rest_arg) = func.arguments().rest { - let rest = if evaluated.positional.len() > 0 { + let rest = if !evaluated.positional.is_empty() { evaluated.positional } else { Vec::new() diff --git a/crates/static/_index.scss b/crates/static/_index.scss new file mode 100644 index 0000000..61c7aaa --- /dev/null +++ b/crates/static/_index.scss @@ -0,0 +1 @@ +// for doc tests \ No newline at end of file