Fix option not derefing

master
Edward Shen 2021-10-30 18:39:40 -07:00
parent bb35f710b2
commit a5b105f486
Signed by: edward
GPG Key ID: 19182661E818369F
1 changed files with 1 additions and 1 deletions

View File

@ -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) {