From cff7f802d0d0d260ca28fddcb1745513e399b7f9 Mon Sep 17 00:00:00 2001 From: Marius van Niekerk Date: Mon, 30 Sep 2024 16:42:16 -0400 Subject: [PATCH] fmt --- src/installer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/installer.rs b/src/installer.rs index 2df8b5a..06cbaff 100644 --- a/src/installer.rs +++ b/src/installer.rs @@ -112,9 +112,7 @@ fn confirm_can_overwrite(dst: &Path) -> Result<()> { ); eprint!("info: would you like to overwrite this file? [y/N]: "); let mut line = String::new(); - stdin - .read_line(&mut line) - .context("failed to read stdin")?; + stdin.read_line(&mut line).context("failed to read stdin")?; if line.starts_with('y') || line.starts_with('Y') { return Ok(());