Skip to content

Commit

Permalink
fix getting pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Feb 1, 2024
1 parent a9cc34e commit 8deb0d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions tooling/cli/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ pub fn command(mut options: Options, verbosity: u8) -> Result<()> {
.0
.get("updater")
.and_then(|k| k.get("pubkey"))
.and_then(|v| v.as_str())
.map(|v| v.to_string());
if let Some(types) = &package_types {
if updater_pub_key
Expand Down
6 changes: 3 additions & 3 deletions tooling/cli/src/interface/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,9 @@ impl AppSettings for RustAppSettings {
.0
.get("updater")
.and_then(|k| k.get("pubkey"))
.map(|v| UpdaterSettings {
pubkey: v.to_string(),
}),
.and_then(|v| v.as_str())
.map(|v| v.to_string())
.map(|pubkey| UpdaterSettings { pubkey }),
arch64bits,
)?;

Expand Down

0 comments on commit 8deb0d8

Please sign in to comment.