mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Update for clippy 1.50 (#2193)
## Issue Addressed NA ## Proposed Changes Rust 1.50 has landed 🎉 The shiny new `clippy` peers down upon us mere mortals with disgust. Brutish peasants wrapping our `usize`s in superfluous `Option`s... tsk tsk. I've performed the goat sacrifice and corrected our evil ways in this PR. Tonight we shall pray that Github Actions bestows the almighty green tick upon us. ## Additional Info NA Co-authored-by: realbigsean <seananderson33@gmail.com> Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -238,29 +238,29 @@ fn unlock_keystore_via_stdin_password(
|
||||
keystore: &Keystore,
|
||||
keystore_path: &PathBuf,
|
||||
) -> Result<(ZeroizeString, Keypair), Error> {
|
||||
eprintln!("");
|
||||
eprintln!();
|
||||
eprintln!(
|
||||
"The {} file does not contain either of the following fields for {:?}:",
|
||||
CONFIG_FILENAME, keystore_path
|
||||
);
|
||||
eprintln!("");
|
||||
eprintln!();
|
||||
eprintln!(" - voting_keystore_password");
|
||||
eprintln!(" - voting_keystore_password_path");
|
||||
eprintln!("");
|
||||
eprintln!();
|
||||
eprintln!(
|
||||
"You may exit and update {} or enter a password. \
|
||||
If you choose to enter a password now then this prompt \
|
||||
will be raised next time the validator is started.",
|
||||
CONFIG_FILENAME
|
||||
);
|
||||
eprintln!("");
|
||||
eprintln!();
|
||||
eprintln!("Enter password (or press Ctrl+c to exit):");
|
||||
|
||||
loop {
|
||||
let password =
|
||||
read_password_from_user(USE_STDIN).map_err(Error::UnableToReadPasswordFromUser)?;
|
||||
|
||||
eprintln!("");
|
||||
eprintln!();
|
||||
|
||||
match keystore.decrypt_keypair(password.as_ref()) {
|
||||
Ok(keystore) => break Ok((password, keystore)),
|
||||
|
||||
Reference in New Issue
Block a user