refactor(tvix/eval): cargo clippy (len() is usize)

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
This commit is contained in:
Florian Klink 2023-08-19 17:21:24 +02:00 committed by flokli
parent 1f02dc7eba
commit def773d4d5

View file

@ -871,7 +871,7 @@ mod pure_builtins {
} }
let end = if len < 0 { let end = if len < 0 {
x.as_str().len() as usize x.as_str().len()
} else { } else {
cmp::min(beg + (len as usize), x.as_str().len()) cmp::min(beg + (len as usize), x.as_str().len())
}; };