Skip to content

Commit de642f8

Browse files
committed
admin/dialoguer: Rename confirm() fn to sync_confirm()
... and make it private since nothing else is using it anymore.
1 parent 384f18b commit de642f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/crates-admin/dialoguer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use crates_io::tasks::spawn_blocking;
33

44
pub async fn async_confirm(msg: impl Into<String>) -> anyhow::Result<bool> {
55
let msg = msg.into();
6-
spawn_blocking(move || confirm(msg).map_err(anyhow::Error::from)).await
6+
spawn_blocking(move || sync_confirm(msg).map_err(anyhow::Error::from)).await
77
}
88

9-
pub fn confirm(msg: impl Into<String>) -> dialoguer::Result<bool> {
9+
fn sync_confirm(msg: impl Into<String>) -> dialoguer::Result<bool> {
1010
Confirm::with_theme(&CustomTheme)
1111
.with_prompt(msg)
1212
.default(false)

0 commit comments

Comments
 (0)