Run cargo fmt
This commit is contained in:
12
src/state.rs
12
src/state.rs
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user