Run cargo fmt

This commit is contained in:
Cameron
2025-08-08 15:06:43 -04:00
parent bf3c26a5f1
commit b3a885de28
6 changed files with 89 additions and 38 deletions

View File

@@ -32,7 +32,6 @@ impl AppState {
gif_path,
}
}
}
impl Default for AppState {
@@ -64,10 +63,10 @@ impl AppState {
// Create the AppState with the temporary paths
AppState::new(
std::sync::Arc::new(crate::video::actors::StreamActor {}.start()),
base_path.to_string_lossy().to_string(),
thumbnail_path.to_string_lossy().to_string(),
video_path.to_string_lossy().to_string(),
gif_path.to_string_lossy().to_string(),
base_path.to_string_lossy().to_string(),
thumbnail_path.to_string_lossy().to_string(),
video_path.to_string_lossy().to_string(),
gif_path.to_string_lossy().to_string(),
)
}
}
@@ -76,7 +75,6 @@ impl AppState {
#[cfg(test)]
fn create_test_subdir(base_path: &std::path::Path, name: &str) -> std::path::PathBuf {
let dir_path = base_path.join(name);
std::fs::create_dir_all(&dir_path)
.expect(&format!("Failed to create {} directory", name));
std::fs::create_dir_all(&dir_path).expect(&format!("Failed to create {} directory", name));
dir_path
}