Skip to content

Commit

Permalink
fix cargo fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
zjregee committed Mar 1, 2024
1 parent 968aa0f commit cfc60fc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions core/src/services/swift/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,12 @@ impl SwiftCore {
// This method of URL construction ensures seamless integration and functionality
// across different swift storage backends.
if !self.storage_url.is_empty() {
return self.storage_url.clone()
return self.storage_url.clone();
}

// This doesn't work well in Ceph Rados Gateway.
// Reference: https://docs.ceph.com/en/latest/radosgw/swift/auth/
format!(
"{}/v1/{}",
&self.endpoint,
&self.account,
)
format!("{}/v1/{}", &self.endpoint, &self.account)
}
}

Expand Down

0 comments on commit cfc60fc

Please sign in to comment.