From e0b271671b81a4ffdd72753936340d475b580655 Mon Sep 17 00:00:00 2001 From: Sougata Bhattacharjee Date: Wed, 24 Jul 2024 00:03:39 +0000 Subject: [PATCH] Made clippy fixes Signed-off-by: Sougata Bhattacharjee --- components/core/src/lib.rs | 2 +- components/pkg-export-tar/src/build.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/core/src/lib.rs b/components/core/src/lib.rs index 7b5168e53da..66dbee0cefa 100644 --- a/components/core/src/lib.rs +++ b/components/core/src/lib.rs @@ -34,9 +34,9 @@ env_config_string!(#[derive(Deserialize, Serialize, Clone, Debug, Eq, Hash, Part ChannelIdent::LTS); impl ChannelIdent { + const LTS: &'static str = "LTS-2024"; const STABLE: &'static str = "stable"; const UNSTABLE: &'static str = "unstable"; - const LTS: &'static str = "LTS-2024"; pub fn as_str(&self) -> &str { self.0.as_str() } diff --git a/components/pkg-export-tar/src/build.rs b/components/pkg-export-tar/src/build.rs index ff2398a4f45..c1881baa698 100644 --- a/components/pkg-export-tar/src/build.rs +++ b/components/pkg-export-tar/src/build.rs @@ -178,10 +178,10 @@ impl<'a> BuildSpec<'a> { } async fn install_lts_pkg(&self, - ui: &mut UI, - ident_or_archive: &str, - fs_root_path: &Path) - -> Result { + ui: &mut UI, + ident_or_archive: &str, + fs_root_path: &Path) + -> Result { self.install(ui, ident_or_archive, self.base_pkgs_url,