File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,11 @@ impl Uploader {
46
46
/// It returns `None` if the current `Uploader` is `NoOp`.
47
47
pub fn crate_location ( & self , crate_name : & str , version : & str ) -> Option < String > {
48
48
match * self {
49
- Uploader :: S3 { ref bucket, ref cdn, .. } => {
49
+ Uploader :: S3 {
50
+ ref bucket,
51
+ ref cdn,
52
+ ..
53
+ } => {
50
54
let host = match * cdn {
51
55
Some ( ref s) => s. clone ( ) ,
52
56
None => bucket. host ( ) ,
@@ -65,7 +69,11 @@ impl Uploader {
65
69
/// It returns `None` if the current `Uploader` is `NoOp`.
66
70
pub fn readme_location ( & self , crate_name : & str , version : & str ) -> Option < String > {
67
71
match * self {
68
- Uploader :: S3 { ref bucket, ref cdn, .. } => {
72
+ Uploader :: S3 {
73
+ ref bucket,
74
+ ref cdn,
75
+ ..
76
+ } => {
69
77
let host = match * cdn {
70
78
Some ( ref s) => s. clone ( ) ,
71
79
None => bucket. host ( ) ,
You can’t perform that action at this time.
0 commit comments