diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-07-19 21:30:27 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-07-19 21:30:27 -0400 |
commit | aaa99c2d98a8dfa791813c350677af59a896068e (patch) | |
tree | aaafceff78d78a3fba6a4f21d9b9a2827473d651 | |
parent | 12e63afdd0111918fcef426a3b00718411e8e7c3 (diff) |
switch to eprintln
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a15c45c..fc84b99 100644 --- a/src/main.rs +++ b/src/main.rs @@ -144,7 +144,7 @@ fn run_quit(args: &Args, context: &AppContext) -> Result<(), JoshutoError> { None => match context.quit { QuitAction::OutputCurrentDirectory => { let curr_path = std::env::current_dir()?; - println!( + eprintln!( "{}", curr_path.into_os_string().as_os_str().to_string_lossy() ); @@ -156,7 +156,7 @@ fn run_quit(args: &Args, context: &AppContext) -> Result<(), JoshutoError> { .into_iter() .flat_map(|s| s.get_selected_paths()); for file in selected_files { - println!("{}", file.display()); + eprintln!("{}", file.display()); } } _ => {} |