style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -168,10 +168,11 @@ impl BurnSession {
|
||||
if self.config.cache_models {
|
||||
// Evict oldest if at capacity
|
||||
if self.models.len() >= self.config.max_cached_models
|
||||
&& let Some(key) = self.models.keys().next().cloned() {
|
||||
debug!("Evicting cached model: {}", key);
|
||||
self.models.remove(&key);
|
||||
}
|
||||
&& let Some(key) = self.models.keys().next().cloned()
|
||||
{
|
||||
debug!("Evicting cached model: {}", key);
|
||||
self.models.remove(&key);
|
||||
}
|
||||
self.models.insert(path_str.clone(), model);
|
||||
self.stats.cached_models = self.models.len();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user