File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,12 @@ use std::cmp::min;
10
10
use std:: fs:: File ;
11
11
use std:: io;
12
12
use std:: io:: prelude:: * ;
13
+ use std:: io:: { stdout, Seek , Write } ;
14
+ use std:: iter:: Iterator ;
13
15
use std:: path:: Path ;
14
16
use url:: Url ;
15
- use zip:: ZipArchive ;
16
-
17
- use std:: io:: { Seek , Write } ;
18
- use std:: iter:: Iterator ;
19
17
use zip:: write:: FileOptions ;
18
+ use zip:: ZipArchive ;
20
19
21
20
use walkdir:: DirEntry ;
22
21
@@ -47,9 +46,9 @@ pub fn get_mmrl_json(path: &str) -> Result<MMRLJSON, serde_json::Error> {
47
46
48
47
pub fn confirm ( msg : & str ) -> bool {
49
48
loop {
50
- println ! ( "{}" , msg) ;
49
+ print ! ( "{}" , msg) ;
51
50
let mut input = String :: new ( ) ;
52
-
51
+ io :: stdout ( ) . flush ( ) . unwrap ( ) ;
53
52
io:: stdin ( )
54
53
. read_line ( & mut input)
55
54
. expect ( "Failed to read input" ) ;
You can’t perform that action at this time.
0 commit comments