Apply cargo fix

This commit is contained in:
asonix 2023-12-22 20:54:02 -06:00
parent 5624671cbf
commit b938b09901
11 changed files with 7 additions and 22 deletions

View file

@ -1,5 +1,4 @@
use actix_web::web::Bytes;
use tokio::io::AsyncReadExt;
use crate::{
exiftool::ExifError,

View file

@ -3,7 +3,6 @@ use crate::{
process::{Process, ProcessError, ProcessRead},
};
use actix_web::web::Bytes;
use tokio::io::{AsyncRead, AsyncReadExt};
#[derive(Debug, thiserror::Error)]
pub(crate) enum ExifError {

View file

@ -17,7 +17,7 @@ use std::{
sync::Arc,
time::{Duration, Instant},
};
use tokio::io::AsyncReadExt;
use tracing::Instrument;
struct MetricsGuard {
@ -253,7 +253,7 @@ where
};
let motion_identifier = reader
.with_stdout(|mut stdout| async { store.save_async_read(stdout, media_type).await })
.with_stdout(|stdout| async { store.save_async_read(stdout, media_type).await })
.await??;
repo.relate_motion_identifier(hash, &motion_identifier)

View file

@ -6,7 +6,6 @@ use crate::{
ffmpeg::FfMpegError,
formats::InternalVideoFormat,
process::{Process, ProcessRead},
read::BoxRead,
store::Store,
tmp_file::TmpDir,
};

View file

@ -4,7 +4,6 @@ use crate::{
formats::ProcessableFormat,
magick::{MagickError, MAGICK_TEMPORARY_PATH},
process::{Process, ProcessRead},
read::BoxRead,
store::Store,
tmp_file::TmpDir,
};

View file

@ -4,7 +4,6 @@ use crate::{
error_code::ErrorCode,
formats::ProcessableFormat,
process::{Process, ProcessError, ProcessRead},
read::BoxRead,
store::Store,
tmp_file::TmpDir,
};

View file

@ -3,24 +3,18 @@ use std::{
any::Any,
ffi::OsStr,
future::Future,
pin::Pin,
process::{ExitStatus, Stdio},
sync::{
atomic::{AtomicU8, Ordering},
Arc, Mutex,
},
task::{Context, Poll, Wake, Waker},
sync::Arc,
time::{Duration, Instant},
};
use tokio::{
io::{AsyncRead, AsyncReadExt, AsyncWriteExt, ReadBuf},
process::{Child, ChildStdin, ChildStdout, Command},
io::{AsyncReadExt, AsyncWriteExt},
process::{Child, ChildStdin, Command},
};
use tracing::{Instrument, Span};
use tracing::Instrument;
use uuid::Uuid;
use crate::{
error::Error,
error_code::ErrorCode,
future::{LocalBoxFuture, WithTimeout},
read::BoxRead,

View file

@ -11,7 +11,6 @@ use crate::{
InternalFormat, Validations,
},
process::ProcessRead,
read::BoxRead,
tmp_file::TmpDir,
};
use actix_web::web::Bytes;

View file

@ -3,7 +3,6 @@ use actix_web::web::Bytes;
use crate::{
exiftool::ExifError,
process::{Process, ProcessRead},
read::BoxRead,
};
#[tracing::instrument(level = "trace", skip_all)]

View file

@ -7,7 +7,6 @@ use crate::{
ffmpeg::FfMpegError,
formats::{InputVideoFormat, OutputVideo},
process::{Process, ProcessRead},
read::BoxRead,
tmp_file::TmpDir,
};

View file

@ -6,8 +6,7 @@ use crate::{
formats::{AnimationFormat, ImageFormat},
magick::{MagickError, MAGICK_TEMPORARY_PATH},
process::{Process, ProcessRead},
read::BoxRead,
tmp_file::{TmpDir, TmpFile, TmpFolder},
tmp_file::TmpDir,
};
pub(super) async fn convert_image(