We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
confirm()
sync_confirm()
1 parent 384f18b commit de642f8Copy full SHA for de642f8
src/bin/crates-admin/dialoguer.rs
@@ -3,10 +3,10 @@ use crates_io::tasks::spawn_blocking;
3
4
pub async fn async_confirm(msg: impl Into<String>) -> anyhow::Result<bool> {
5
let msg = msg.into();
6
- spawn_blocking(move || confirm(msg).map_err(anyhow::Error::from)).await
+ spawn_blocking(move || sync_confirm(msg).map_err(anyhow::Error::from)).await
7
}
8
9
-pub fn confirm(msg: impl Into<String>) -> dialoguer::Result<bool> {
+fn sync_confirm(msg: impl Into<String>) -> dialoguer::Result<bool> {
10
Confirm::with_theme(&CustomTheme)
11
.with_prompt(msg)
12
.default(false)
0 commit comments