mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
cargo fix
This commit is contained in:
parent
2795f96aed
commit
c089e44b59
@ -147,7 +147,7 @@ mod test {
|
|||||||
use super::*;
|
use super::*;
|
||||||
use crate::test_utils::*;
|
use crate::test_utils::*;
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
use tokio::fs::File;
|
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn simple() -> Result<()> {
|
async fn simple() -> Result<()> {
|
||||||
|
@ -182,7 +182,7 @@ impl<'a> AdaptedFilesIter for ZipAdaptIter<'a> {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use async_zip::{write::ZipFileWriter, Compression, ZipEntryBuilder};
|
use async_zip::{write::ZipFileWriter, Compression, ZipEntryBuilder};
|
||||||
use tokio::fs::File;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{preproc::loop_adapt, test_utils::*};
|
use crate::{preproc::loop_adapt, test_utils::*};
|
||||||
@ -213,7 +213,7 @@ mod test {
|
|||||||
async fn only_seek_zip_fs() -> Result<()> {
|
async fn only_seek_zip_fs() -> Result<()> {
|
||||||
let zip = test_data_dir().join("only-seek-zip.zip");
|
let zip = test_data_dir().join("only-seek-zip.zip");
|
||||||
let (a, d) = simple_fs_adapt_info(&zip).await?;
|
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)?, "");
|
// assert_eq!(String::from_utf8(v)?, "");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -9,10 +9,7 @@ use crate::{
|
|||||||
recurse::concat_read_streams,
|
recurse::concat_read_streams,
|
||||||
};
|
};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use std::{
|
use std::path::{Path, PathBuf};
|
||||||
ffi::OsStr,
|
|
||||||
path::{Path, PathBuf},
|
|
||||||
};
|
|
||||||
use tokio::{fs::File, io::AsyncReadExt};
|
use tokio::{fs::File, io::AsyncReadExt};
|
||||||
|
|
||||||
pub use pretty_assertions::{assert_eq, assert_ne};
|
pub use pretty_assertions::{assert_eq, assert_ne};
|
||||||
@ -69,6 +66,5 @@ pub fn poppler_adapter() -> CustomSpawningFileAdapter {
|
|||||||
.find(|e| e.name == "poppler")
|
.find(|e| e.name == "poppler")
|
||||||
.expect("no poppler adapter");
|
.expect("no poppler adapter");
|
||||||
|
|
||||||
let adapter = adapter.to_adapter();
|
adapter.to_adapter()
|
||||||
adapter
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user