Skip to content

Commit 8543f82

Browse files
committed
improve
1 parent 043ee62 commit 8543f82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ impl AuthenticatedApi<'_> {
449449
}
450450

451451
/// Returns the auth info for use in external service authorization.
452-
pub fn get_auth(&self) -> &Auth {
452+
pub fn auth(&self) -> &Auth {
453453
self.api
454454
.config
455455
.get_auth()

src/commands/build/snapshots.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn upload_images(
207207
let client = ClientBuilder::new(options.objectstore.url)
208208
.token({
209209
// TODO: replace with auth from `ObjectstoreUploadOptions` when appropriate
210-
let auth = match authenticated_api.get_auth() {
210+
let auth = match authenticated_api.auth() {
211211
Auth::Token(token) => token.raw().expose_secret().to_owned(),
212212
};
213213
auth

0 commit comments

Comments
 (0)