Skip to content

Commit f503cfe

Browse files
committed
cargo fmt
1 parent 18ff882 commit f503cfe

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/uploaders.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ impl Uploader {
4646
/// It returns `None` if the current `Uploader` is `NoOp`.
4747
pub fn crate_location(&self, crate_name: &str, version: &str) -> Option<String> {
4848
match *self {
49-
Uploader::S3 { ref bucket, ref cdn, .. } => {
49+
Uploader::S3 {
50+
ref bucket,
51+
ref cdn,
52+
..
53+
} => {
5054
let host = match *cdn {
5155
Some(ref s) => s.clone(),
5256
None => bucket.host(),
@@ -65,7 +69,11 @@ impl Uploader {
6569
/// It returns `None` if the current `Uploader` is `NoOp`.
6670
pub fn readme_location(&self, crate_name: &str, version: &str) -> Option<String> {
6771
match *self {
68-
Uploader::S3 { ref bucket, ref cdn, .. } => {
72+
Uploader::S3 {
73+
ref bucket,
74+
ref cdn,
75+
..
76+
} => {
6977
let host = match *cdn {
7078
Some(ref s) => s.clone(),
7179
None => bucket.host(),

0 commit comments

Comments
 (0)