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:
@@ -70,19 +70,19 @@ impl WarmupScheduler {
|
||||
}
|
||||
|
||||
/// Get the number of warmup steps
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn warmup_steps(&self) -> usize {
|
||||
self.warmup_steps
|
||||
}
|
||||
|
||||
/// Check if currently in warmup phase
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn in_warmup(&self, step: usize) -> bool {
|
||||
step < self.warmup_steps
|
||||
}
|
||||
|
||||
/// Get the warmup progress (0.0 to 1.0)
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn warmup_progress(&self, step: usize) -> f64 {
|
||||
if step >= self.warmup_steps {
|
||||
1.0
|
||||
|
||||
Reference in New Issue
Block a user