about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/bootstrap/setup.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/setup.rs b/src/bootstrap/setup.rs
index 2119747d9e1..6811a376ac0 100644
--- a/src/bootstrap/setup.rs
+++ b/src/bootstrap/setup.rs
@@ -140,7 +140,6 @@ pub fn interactive_path() -> io::Result<Profile> {
         input.parse()
     }
 
-    let mut input = String::new();
     println!("Welcome to the Rust project! What do you want to do with x.py?");
     for (letter, profile) in abbrev_all() {
         println!("{}) {}: {}", letter, profile, profile.purpose());
@@ -151,6 +150,7 @@ pub fn interactive_path() -> io::Result<Profile> {
             abbrev_all().map(|(l, _)| l).collect::<Vec<_>>().join("/")
         );
         io::stdout().flush()?;
+        let mut input = String::new();
         io::stdin().read_line(&mut input)?;
         break match parse_with_abbrev(&input) {
             Ok(profile) => profile,