Skip to content

Commit

Permalink
Run rustfmt 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lann committed Aug 24, 2023
1 parent a7c5a90 commit d9ef671
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<R: RegistryStorage, C: ContentStorage> Client<R, C> {
// TODO: parallelize this
for (digest, MissingContent { upload }) in record.missing_content() {
// Upload the missing content, if the registry supports it
let Some(UploadEndpoint::HttpPost {url}) = upload.first() else {
let Some(UploadEndpoint::HttpPost { url }) = upload.first() else {
continue;
};

Expand Down
4 changes: 2 additions & 2 deletions crates/crypto/src/signing/private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl PrivateKey {
let s = s.into();

let Some((algo, b64_data)) = s.expose_secret().split_once(':') else {
return Err(PrivateKeyParseError::MissingColon)
return Err(PrivateKeyParseError::MissingColon);
};

let algo = algo.parse::<SignatureAlgorithm>()?;
Expand Down Expand Up @@ -83,7 +83,7 @@ impl TryFrom<String> for PrivateKey {
let key = Zeroizing::new(key);

let Some((algo, b64_data)) = key.split_once(':') else {
return Err(PrivateKeyParseError::MissingColon)
return Err(PrivateKeyParseError::MissingColon);
};

let algo = algo.parse::<SignatureAlgorithm>()?;
Expand Down

0 comments on commit d9ef671

Please sign in to comment.