diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-12 15:36:17 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-12 15:37:11 +0200 |
commit | 9491e4e16dbcd4d799ec475e461f1008cc319ff1 (patch) | |
tree | cd149f40583faf4c8f316975f6ff98fa9c10c07c /src/main.rs | |
parent | d772b974feb77e19e0a32069f962dc22e450b352 (diff) |
We can terminate with EOF when using -iv1.0.1
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index 14ddcb9..def98c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -263,7 +263,6 @@ fn run_indiv( src.to_owned() } )?; - ci.write_all(if flags.nul { &[b'\0'] } else { &[b'\n'] })?; } let mut co = child.stdout.take().unwrap_or_else(|| { @@ -271,14 +270,6 @@ fn run_indiv( }); let mut s = String::with_capacity(src.len()); co.read_to_string(&mut s)?; - match s.chars().last().unwrap_or_else(|| { - err!("Filename can’t be the empty string"); - }) { - '\n' | '\0' => { - s.pop(); - } - _ => {} - }; dsts.push(if flags.encode { decode_string(s.as_str()) } else { |