Skip to content

Commit

Permalink
None instead of Some()
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Oct 16, 2023
1 parent 6af37b7 commit 4af0852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub async fn pack<P: Into<PathBuf>, S: Store>(writer: Writer, store: S, root: P,

if strip_password {
let mut url = url::Url::parse(&store_url).expect("failed to parse store url");
url.set_password(Some("")).expect("failed to remove password from url");
url.set_password(None).expect("failed to remove password from url");
store_url = url.to_string();
}

Expand Down

0 comments on commit 4af0852

Please sign in to comment.