Fix import warnings

This commit is contained in:
Cameron
2026-02-26 10:10:26 -05:00
parent 0d05033b38
commit 7d164bad81

View File

@@ -176,7 +176,7 @@ fn is_video_file(path: &Path) -> bool {
async fn create_circular_thumbnail(
thumb_path: &Path,
thumbs_dir: &str,
) -> Result<PathBuf, Box<dyn std::error::Error>> {
) -> Result<PathBuf, Box<dyn Error>> {
use image::{GenericImageView, ImageBuffer, Rgba};
// Create circular thumbnails directory
@@ -1091,7 +1091,7 @@ fn main() -> std::io::Result<()> {
let end = end_date;
tokio::spawn(async move {
log::info!("Starting daily summary generation for {}", contact);
info!("Starting daily summary generation for {}", contact);
if let Err(e) = generate_daily_summaries(
contact,
start,
@@ -1102,9 +1102,9 @@ fn main() -> std::io::Result<()> {
)
.await
{
log::error!("Daily summary generation failed for {}: {:?}", contact, e);
error!("Daily summary generation failed for {}: {:?}", contact, e);
} else {
log::info!("Daily summary generation completed for {}", contact);
info!("Daily summary generation completed for {}", contact);
}
});
}
@@ -1347,7 +1347,7 @@ fn cleanup_orphaned_playlists() {
fn watch_files(
playlist_manager: Addr<VideoPlaylistManager>,
preview_generator: actix::Addr<crate::video::actors::PreviewClipGenerator>,
preview_generator: Addr<video::actors::PreviewClipGenerator>,
) {
std::thread::spawn(move || {
let base_str = dotenv::var("BASE_PATH").unwrap();
@@ -1461,7 +1461,7 @@ fn process_new_files(
preview_dao: Arc<Mutex<Box<dyn PreviewDao>>>,
modified_since: Option<SystemTime>,
playlist_manager: Addr<VideoPlaylistManager>,
preview_generator: actix::Addr<crate::video::actors::PreviewClipGenerator>,
preview_generator: Addr<video::actors::PreviewClipGenerator>,
) {
let context = opentelemetry::Context::new();
let thumbs = dotenv::var("THUMBNAILS").expect("THUMBNAILS not defined");