Bumps rpassword from 5.0.1 to 6.0.1.

This commit is contained in:
zonyitoo
2022-04-10 01:53:37 +08:00
parent c3f42d0306
commit 66dc357ebf
3 changed files with 6 additions and 4 deletions
Generated
+4 -2
View File
@@ -1744,11 +1744,13 @@ dependencies = [
[[package]]
name = "rpassword"
version = "5.0.1"
version = "6.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb"
checksum = "2bf099a1888612545b683d2661a1940089f6c2e5a8e38979b2159da876bfd956"
dependencies = [
"libc",
"serde",
"serde_json",
"winapi",
]
+1 -1
View File
@@ -151,7 +151,7 @@ exitcode = "1"
build-time = "0.1"
directories = "4.0"
xdg = "2.4"
rpassword = "5.0.1"
rpassword = "6.0"
libc = "0.2"
futures = "0.3"
+1 -1
View File
@@ -17,7 +17,7 @@ pub fn read_server_password(server_name: &str) -> io::Result<String> {
// read from TTY
let tty_prompt = format!("({}) Password: ", server_name);
if let Ok(pwd) = rpassword::read_password_from_tty(Some(&tty_prompt)) {
if let Ok(pwd) = rpassword::prompt_password(&tty_prompt) {
debug!("got server {} password from tty prompt", server_name);
return Ok(pwd);
}