hls: cargo fmt + clippy::cloned_ref_to_slice_refs

Pure mechanical pass on the files this branch added/modified:
rustfmt reflow of a few long lines / chains, and the one
non-pre-existing clippy warning — replacing
`&[rel_path.clone()]` with `std::slice::from_ref(&rel_path)` in
`handlers::video::generate_video` to avoid the alloc + clone for a
single-element slice.

All 707 tests still pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cameron Cordes
2026-05-14 16:01:16 -04:00
parent 7cd1ea3cf8
commit 8c91bf554b
4 changed files with 31 additions and 41 deletions
+1 -4
View File
@@ -38,10 +38,7 @@ pub struct RetireStats {
impl RetireStats {
pub fn total_deleted(&self) -> usize {
self.deleted_playlists
+ self.deleted_segments
+ self.deleted_sentinels
+ self.deleted_tmp
self.deleted_playlists + self.deleted_segments + self.deleted_sentinels + self.deleted_tmp
}
}