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:
parent
1f02dc7eba
commit
def773d4d5
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue