This commit is contained in:
sxyazi 2024-03-15 20:18:13 +08:00
parent d672e1538b
commit 79aa077d39
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View file

@ -20,11 +20,9 @@ pub fn fd(opt: FdOpt) -> Result<UnboundedReceiver<File>> {
.arg(&opt.subject)
.kill_on_drop(true)
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.stderr(Stdio::null())
.spawn()?;
drop(child.stderr.take());
let mut it = BufReader::new(child.stdout.take().unwrap()).lines();
let (tx, rx) = mpsc::unbounded_channel();

View file

@ -18,11 +18,9 @@ pub fn rg(opt: RgOpt) -> Result<UnboundedReceiver<File>> {
.arg(&opt.subject)
.kill_on_drop(true)
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.stderr(Stdio::null())
.spawn()?;
drop(child.stderr.take());
let mut it = BufReader::new(child.stdout.take().unwrap()).lines();
let (tx, rx) = mpsc::unbounded_channel();