mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
updated dependencies
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
/// Read a secret from tty with customisable prompt
|
||||
pub fn read_secret_from_tty(prompt: &str) -> std::io::Result<Option<String>> {
|
||||
match rpassword::read_password_from_tty(Some(prompt)) {
|
||||
match rpassword::prompt_password(prompt) {
|
||||
Ok(p) if p.is_empty() => Ok(None),
|
||||
Ok(p) => Ok(Some(p)),
|
||||
Err(err) => Err(err),
|
||||
|
||||
Reference in New Issue
Block a user