Skip to content

Commit 1b80ec2

Browse files
committed
treewide: inline inquire::Confirm usage
Should've done this earlier. Signed-off-by: NotAShelf <[email protected]> Change-Id: I6a6a69645f4dce8249d2ddcf18ee60e21d505171
1 parent 4ee6ffe commit 1b80ec2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/darwin.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::env;
22
use std::path::PathBuf;
33

44
use color_eyre::eyre::{Context, bail, eyre};
5-
use inquire::Confirm;
65
use tracing::{debug, warn};
76

87
use crate::Result;
@@ -144,7 +143,7 @@ impl DarwinRebuildArgs {
144143
}
145144

146145
if self.common.ask && !self.common.dry && !matches!(variant, Build) {
147-
let confirmation = Confirm::new("Apply the config?")
146+
let confirmation = inquire::Confirm::new("Apply the config?")
148147
.with_default(false)
149148
.prompt()?;
150149

src/home.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::path::PathBuf;
44

55
use color_eyre::Result;
66
use color_eyre::eyre::{Context, bail, eyre};
7-
use inquire::Confirm;
87
use tracing::{debug, info, warn};
98

109
use crate::commands;
@@ -161,7 +160,7 @@ impl HomeRebuildArgs {
161160
}
162161

163162
if self.common.ask {
164-
let confirmation = Confirm::new("Apply the config?")
163+
let confirmation = inquire::Confirm::new("Apply the config?")
165164
.with_default(false)
166165
.prompt()?;
167166

0 commit comments

Comments
 (0)