We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2b894 commit 5f62128Copy full SHA for 5f62128
src/write.rs
@@ -1,5 +1,5 @@
1
use std::fs;
2
-use std::io::{self, Write};
+use std::io;
3
use std::path::PathBuf;
4
5
use log::{error, info, warn};
@@ -19,9 +19,6 @@ impl Module {
19
// A prompt enabling the user to overwrite the existing file
20
warn!("File already exists: {}", full_path.display());
21
warn!("Do you want to overwrite it? [y/N] ");
22
- // We must manually flush the buffer or else the printed string doesn't appear.
23
- // The buffer otherwise waits for a newline.
24
- io::stdout().flush().unwrap();
25
26
let mut answer = String::new();
27
0 commit comments