fix: resolve duplicate imports and missing io/Context imports
This commit is contained in:
@@ -4,7 +4,7 @@ use std::io::Write;
|
||||
|
||||
use lz4_flex::frame::{FrameDecoder, FrameEncoder};
|
||||
use std::fs::File;
|
||||
use std::io::{Read, Write};
|
||||
use std::io::Read;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::compression_engine::CompressionEngine;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use std::io;
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use std::io::{self, Write};
|
||||
use crate::digest_engine::DigestEngine;
|
||||
use std::io::Write;
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Clone, Default)]
|
||||
pub struct DigestEngineNone {}
|
||||
|
||||
@@ -9,12 +9,11 @@ use std::process::{Command, Stdio};
|
||||
|
||||
use crate::digest_engine::DigestEngine;
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Clone)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct DigestEngineProgram {
|
||||
pub program: String,
|
||||
pub args: Vec<String>,
|
||||
pub supported: bool,
|
||||
process: Option<std::process::Child>,
|
||||
}
|
||||
|
||||
impl DigestEngineProgram {
|
||||
|
||||
Reference in New Issue
Block a user