Fix option not derefing
This commit is contained in:
parent
bb35f710b2
commit
a5b105f486
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ fn handle_download(mut url: ParsedUrl) -> Result<()> {
|
|||
password = Some(input);
|
||||
}
|
||||
|
||||
open_in_place(&mut data, &url.decryption_key, &password)?;
|
||||
open_in_place(&mut data, &url.decryption_key, password.as_deref())?;
|
||||
|
||||
if atty::is(Stream::Stdout) {
|
||||
if let Ok(data) = String::from_utf8(data) {
|
||||
|
|
Loading…
Reference in a new issue