Skip to content

Commit 736223c

Browse files
committed
Clean up
1 parent 9b3171f commit 736223c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/updater/src/updater.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub enum Installer {
5656
}
5757

5858
impl Installer {
59-
fn suffix(self) -> &'static str {
59+
fn name(self) -> &'static str {
6060
match self {
6161
Self::AppImage => "appimage",
6262
Self::Deb => "deb",
@@ -554,7 +554,7 @@ impl Updater {
554554
let arch = self.arch;
555555
let mut targets = Vec::new();
556556
if let Some(installer) = installer {
557-
let installer = installer.suffix();
557+
let installer = installer.name();
558558
targets.push(format!("{os}-{arch}-{installer}"));
559559
}
560560
targets.push(format!("{os}-{arch}"));

plugins/updater/tests/app-updater/tests/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl BundleTarget {
103103
}
104104
}
105105

106-
impl BundleTarget {
106+
impl Default for BundleTarget {
107107
fn default() -> Self {
108108
#[cfg(any(target_os = "macos", target_os = "ios"))]
109109
return Self::App;

0 commit comments

Comments
 (0)