mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-08 14:00:37 +00:00
cargo fix
This commit is contained in:
parent
2795f96aed
commit
c089e44b59
@ -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<()> {
|
||||
|
@ -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(())
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user