Skip to content

Commit

Permalink
add trim
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku committed Apr 14, 2024
1 parent e9ede8a commit 8b04c52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/deploy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,12 @@ pub async fn serve(context: Context) -> anyhow::Result<()> {

let mut mods_value_str = String::new();
std::io::stdin().read_line(&mut mods_value_str)?;
mods_value = Some(mods_value_str.parse::<i32>().expect("failed to parse mods"));
mods_value = Some(
mods_value_str
.trim()
.parse::<i32>()
.expect("failed to parse mods"),
);

print!("\n");
std::io::stdout().flush()?;
Expand Down

0 comments on commit 8b04c52

Please sign in to comment.