We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2ef1d commit 3ff02cdCopy full SHA for 3ff02cd
src/utils.rs
@@ -10,13 +10,12 @@ use std::cmp::min;
10
use std::fs::File;
11
use std::io;
12
use std::io::prelude::*;
13
+use std::io::{stdout, Seek, Write};
14
+use std::iter::Iterator;
15
use std::path::Path;
16
use url::Url;
-use zip::ZipArchive;
-
17
-use std::io::{Seek, Write};
18
-use std::iter::Iterator;
19
use zip::write::FileOptions;
+use zip::ZipArchive;
20
21
use walkdir::DirEntry;
22
@@ -47,9 +46,9 @@ pub fn get_mmrl_json(path: &str) -> Result<MMRLJSON, serde_json::Error> {
47
46
48
pub fn confirm(msg: &str) -> bool {
49
loop {
50
- println!("{}", msg);
+ print!("{}", msg);
51
let mut input = String::new();
52
+ io::stdout().flush().unwrap();
53
io::stdin()
54
.read_line(&mut input)
55
.expect("Failed to read input");
0 commit comments