Skip to content

Commit c8d57a8

Browse files
committed
Format and clippy
1 parent ad8d711 commit c8d57a8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

plugins/updater/src/error.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ pub enum Error {
4343
#[error("the platform `{0}` was not found in the response `platforms` object")]
4444
TargetNotFound(String),
4545
/// 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+
)]
4749
TargetsNotFound(Vec<String>),
4850
/// Download failed
4951
#[error("`{0}`")]

plugins/updater/src/updater.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,11 @@ impl Updater {
421421
.to_string()
422422
// url::Url automatically url-encodes the path components
423423
.replace("%7B%7Bcurrent_version%7D%7D", &encoded_version)
424-
.replace("%7B%7Btarget%7D%7D", &target)
424+
.replace("%7B%7Btarget%7D%7D", target)
425425
.replace("%7B%7Barch%7D%7D", self.arch)
426426
// but not query parameters
427427
.replace("{{current_version}}", &encoded_version)
428-
.replace("{{target}}", &target)
428+
.replace("{{target}}", target)
429429
.replace("{{arch}}", self.arch)
430430
.parse()?;
431431

0 commit comments

Comments
 (0)