File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ pub enum Error {
43
43
#[ error( "the platform `{0}` was not found in the response `platforms` object" ) ]
44
44
TargetNotFound ( String ) ,
45
45
/// Neither the platform not the fallback platform was not found in the updater JSON response.
46
- #[ error( "None of the fallback platforms `{0:?}` were found in the response `platforms` object" ) ]
46
+ #[ error(
47
+ "None of the fallback platforms `{0:?}` were found in the response `platforms` object"
48
+ ) ]
47
49
TargetsNotFound ( Vec < String > ) ,
48
50
/// Download failed
49
51
#[ error( "`{0}`" ) ]
Original file line number Diff line number Diff line change @@ -421,11 +421,11 @@ impl Updater {
421
421
. to_string ( )
422
422
// url::Url automatically url-encodes the path components
423
423
. replace ( "%7B%7Bcurrent_version%7D%7D" , & encoded_version)
424
- . replace ( "%7B%7Btarget%7D%7D" , & target)
424
+ . replace ( "%7B%7Btarget%7D%7D" , target)
425
425
. replace ( "%7B%7Barch%7D%7D" , self . arch )
426
426
// but not query parameters
427
427
. replace ( "{{current_version}}" , & encoded_version)
428
- . replace ( "{{target}}" , & target)
428
+ . replace ( "{{target}}" , target)
429
429
. replace ( "{{arch}}" , self . arch )
430
430
. parse ( ) ?;
431
431
You can’t perform that action at this time.
0 commit comments