fix: Resolve Rust 1.95.0 clippy lint (unnecessary_sort_by) in manager.rs
This commit is contained in:
@ -222,7 +222,7 @@ impl JobManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sort by created_at descending (newest first)
|
// Sort by created_at descending (newest first)
|
||||||
result.sort_by(|a, b| b.created_at.cmp(&a.created_at));
|
result.sort_by_key(|b| std::cmp::Reverse(b.created_at));
|
||||||
|
|
||||||
// Apply limit
|
// Apply limit
|
||||||
result.truncate(limit);
|
result.truncate(limit);
|
||||||
|
|||||||
Reference in New Issue
Block a user