Fix bowwing pwobwems

pull/2/head
Isaac Mills 3 years ago
parent 1111bda1ca
commit 2c7b0bc1a6
No known key found for this signature in database
GPG Key ID: B67D7410F33A0F61

@ -101,7 +101,7 @@ impl<'a> UwUify<'a> {
let mut uwu_out_file = UwUOutFile::new(File::create(&self.output)?); let mut uwu_out_file = UwUOutFile::new(File::create(&self.output)?);
let uwu_progress_bar = UwUProgressBar::new(); let uwu_progress_bar = UwUProgressBar::new();
self.uwuify_sentence(&self.text, &mut uwu_out_file)?; self.uwuify_sentence(self.text, &mut uwu_out_file)?;
uwu_progress_bar.finish("UwU'ifying Complete!"); uwu_progress_bar.finish("UwU'ifying Complete!");
Ok(()) Ok(())
@ -112,7 +112,7 @@ impl<'a> UwUify<'a> {
let mut out = UwUOutFile::new(stdout.lock()); let mut out = UwUOutFile::new(stdout.lock());
#[cfg(test)] #[cfg(test)]
let mut out = UwUOutFile::new(std::io::sink()); let mut out = UwUOutFile::new(std::io::sink());
self.uwuify_sentence(&self.text, &mut out)?; self.uwuify_sentence(self.text, &mut out)?;
#[cfg(not(test))] #[cfg(not(test))]
out.write_bytes(b"\n")?; out.write_bytes(b"\n")?;
Ok(()) Ok(())

Loading…
Cancel
Save