style: apply nix fmt

This commit is contained in:
müde 2026-07-05 22:24:42 +02:00
commit e1e3bda94a
7 changed files with 22 additions and 10 deletions

View file

@ -41,7 +41,11 @@ impl CompactionPolicy for PercentPolicy {
if self.percent == 0 {
return false;
}
let Some(window) = usage.context_window.or(self.default_window).filter(|&w| w > 0) else {
let Some(window) = usage
.context_window
.or(self.default_window)
.filter(|&w| w > 0)
else {
return false;
};
usage.context_tokens.saturating_mul(100) >= u64::from(self.percent) * window