Skip to content

Commit 43c68d5

Browse files
style(confirm_push): format multiline stdin read for clarity
1 parent 7d0e7a1 commit 43c68d5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anyhow::{Context, Result, anyhow};
1+
use anyhow::{anyhow, Context, Result};
22
use serde::{Deserialize, Serialize};
33
use std::env;
44
use std::io::{self, Write};
@@ -215,7 +215,9 @@ fn confirm_push() -> Result<bool> {
215215
io::stderr().flush()?;
216216

217217
let mut input = String::new();
218-
io::stdin().read_line(&mut input).context("failed to read user input")?;
218+
io::stdin()
219+
.read_line(&mut input)
220+
.context("failed to read user input")?;
219221

220222
match input.trim().to_lowercase().as_str() {
221223
"y" | "yes" => return Ok(true),

0 commit comments

Comments
 (0)