cargo fix

This commit is contained in:
phiresky 2023-01-06 17:35:56 +05:30
parent 2795f96aed
commit c089e44b59
3 changed files with 5 additions and 9 deletions

View File

@ -147,7 +147,7 @@ mod test {
use super::*;
use crate::test_utils::*;
use pretty_assertions::assert_eq;
use tokio::fs::File;
#[tokio::test]
async fn simple() -> Result<()> {

View File

@ -182,7 +182,7 @@ impl<'a> AdaptedFilesIter for ZipAdaptIter<'a> {
#[cfg(test)]
mod test {
use async_zip::{write::ZipFileWriter, Compression, ZipEntryBuilder};
use tokio::fs::File;
use super::*;
use crate::{preproc::loop_adapt, test_utils::*};
@ -213,7 +213,7 @@ mod test {
async fn only_seek_zip_fs() -> Result<()> {
let zip = test_data_dir().join("only-seek-zip.zip");
let (a, d) = simple_fs_adapt_info(&zip).await?;
let v = adapted_to_vec(loop_adapt(&ZipAdapter::new(), d, a)?).await?;
let _v = adapted_to_vec(loop_adapt(&ZipAdapter::new(), d, a)?).await?;
// assert_eq!(String::from_utf8(v)?, "");
Ok(())

View File

@ -9,10 +9,7 @@ use crate::{
recurse::concat_read_streams,
};
use anyhow::Result;
use std::{
ffi::OsStr,
path::{Path, PathBuf},
};
use std::path::{Path, PathBuf};
use tokio::{fs::File, io::AsyncReadExt};
pub use pretty_assertions::{assert_eq, assert_ne};
@ -69,6 +66,5 @@ pub fn poppler_adapter() -> CustomSpawningFileAdapter {
.find(|e| e.name == "poppler")
.expect("no poppler adapter");
let adapter = adapter.to_adapter();
adapter
adapter.to_adapter()
}