From a5b105f4869bef0ae9c5c85f9bdd6ef434f3e4ea Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Sat, 30 Oct 2021 18:39:40 -0700 Subject: [PATCH] Fix option not derefing --- cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 99fed23..3eb9b4a 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -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) {