Fix Rust 1.97 imaging gate lints
All checks were successful
Imaging and meshing gate / native (push) Successful in 2m40s
JPEG 2000 feature / linux (push) Successful in 1m35s
Native Rust workspace compile / compile (push) Successful in 1m51s
Skia feature / linux (push) Successful in 31m16s

This commit is contained in:
2026-08-09 13:05:21 +00:00
parent aeb44fd089
commit a18b09d928
3 changed files with 10 additions and 10 deletions

View File

@@ -1213,10 +1213,10 @@ impl TokenBucket {
if state.content.wrapping_sub(amount) < 0 {
return Ok(false);
}
if let Some(parent) = &self.parent {
if !parent.remove_tokens_with_int32(amount)? {
return Ok(false);
}
if let Some(parent) = &self.parent
&& !parent.remove_tokens_with_int32(amount)?
{
return Ok(false);
}
state.content = state.content.wrapping_sub(amount);
Ok(true)