Skip to content

Commit 78d03de

Browse files
committed
cargo fmt
Signed-off-by: Tuan Anh Tran <[email protected]>
1 parent e578218 commit 78d03de

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/oci.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ fn build_auth(reference: &Reference) -> RegistryAuth {
6161
Err(CredentialRetrievalError::ConfigNotFound) => RegistryAuth::Anonymous,
6262
Err(CredentialRetrievalError::NoCredentialConfigured) => RegistryAuth::Anonymous,
6363
Err(e) => {
64-
log::info!(
65-
"Error retrieving docker credentials: {e}. Using anonymous auth"
66-
);
64+
log::info!("Error retrieving docker credentials: {e}. Using anonymous auth");
6765
RegistryAuth::Anonymous
6866
}
6967
Ok(DockerCredential::UsernamePassword(username, password)) => {
@@ -131,9 +129,7 @@ async fn setup_trust_repository(cli: &Cli) -> Result<Box<dyn TrustRoot>, anyhow:
131129
Err(e) => log::warn!("Failed to read Fulcio certificates file: {e}"),
132130
}
133131
} else {
134-
log::warn!(
135-
"Fulcio certificates file not found: {fulcio_certs_path:?}"
136-
);
132+
log::warn!("Fulcio certificates file not found: {fulcio_certs_path:?}");
137133
}
138134
}
139135

0 commit comments

Comments
 (0)