Skip to content

Commit

Permalink
Bumps rpassword from 5.0.1 to 6.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Apr 9, 2022
1 parent c3f42d0 commit 66dc357
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 66dc357

Please sign in to comment.