about summary refs log tree commit diff
path: root/tvix/eval/src/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/compiler.rs')
-rw-r--r--tvix/eval/src/compiler.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tvix/eval/src/compiler.rs b/tvix/eval/src/compiler.rs
index 75ea99ea787c..d4a34ba61da9 100644
--- a/tvix/eval/src/compiler.rs
+++ b/tvix/eval/src/compiler.rs
@@ -14,7 +14,6 @@
 //! mistakes early during development.
 
 use path_clean::PathClean;
-use rnix;
 use rnix::types::{BinOpKind, EntryHolder, TokenWrapper, TypedNode, Wrapper};
 use std::path::{Path, PathBuf};
 
@@ -735,7 +734,7 @@ impl Compiler {
 
         // TL;DR - iterate from the back while things belonging to the
         // ended scope still exist.
-        while scope.locals.len() > 0
+        while !scope.locals.is_empty()
             && scope.locals[scope.locals.len() - 1].depth > scope.scope_depth
         {
             pops += 1;