fix tests

This commit is contained in:
phiresky 2022-12-25 18:06:50 +01:00
parent 2e1c74909e
commit 616c0a560b
3 changed files with 4 additions and 6 deletions

View File

@ -343,14 +343,11 @@ PREFIX:\u{c}
Ok(()) Ok(())
} }
use std::io::Cursor;
use super::*;
use crate::adapters::FileAdapter;
use crate::{ use crate::{
adapters::custom::CustomAdapterConfig, adapters::custom::CustomAdapterConfig,
test_utils::{adapted_to_vec, simple_adapt_info}, test_utils::{adapted_to_vec, simple_adapt_info},
}; };
use std::io::Cursor;
#[tokio::test] #[tokio::test]
async fn streaming() -> anyhow::Result<()> { async fn streaming() -> anyhow::Result<()> {
@ -365,6 +362,7 @@ PREFIX:\u{c}
match_only_by_mime: None, match_only_by_mime: None,
binary: "sed".to_string(), binary: "sed".to_string(),
args: vec!["s/e/u/g".to_string()], args: vec!["s/e/u/g".to_string()],
output_path_hint: None,
}; };
let adapter = adapter.to_adapter(); let adapter = adapter.to_adapter();

View File

@ -1,5 +1,5 @@
use anyhow::Context; use anyhow::Context;
use rga::adapters::spawning::map_exe_error; use rga::adapters::custom::map_exe_error;
use ripgrep_all as rga; use ripgrep_all as rga;
use std::process::{Command, Stdio}; use std::process::{Command, Stdio};

View File

@ -1,5 +1,5 @@
use anyhow::Result; use anyhow::Result;
use rga::adapters::spawning::map_exe_error; use rga::adapters::custom::map_exe_error;
use rga::adapters::*; use rga::adapters::*;
use rga::config::{split_args, RgaConfig}; use rga::config::{split_args, RgaConfig};
use rga::matching::*; use rga::matching::*;