about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-08-19T15·21+0200
committerflokli <flokli@flokli.de>2023-08-20T21·51+0000
commitdef773d4d50f17ac8d4e94eac55724b338387e47 (patch)
treea0c1a06cf475f8bafa1cb649095f7fc36c898244
parent1f02dc7ebae40eb9e6f47c68d4469ca8409e418e (diff)
refactor(tvix/eval): cargo clippy (len() is usize) r/6503
Change-Id: I9d931ffcc03c6df7c0392dbc1c9a4ae0e3804213
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9099
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
-rw-r--r--tvix/eval/src/builtins/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index c841f9fc6a29..d0c5bf5568b9 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -871,7 +871,7 @@ mod pure_builtins {
         }
 
         let end = if len < 0 {
-            x.as_str().len() as usize
+            x.as_str().len()
         } else {
             cmp::min(beg + (len as usize), x.as_str().len())
         };