From fea46f69f29b3208e56f55565635634b6ac9d661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Mon, 11 Sep 2023 17:01:49 +0200 Subject: [PATCH] style(xtask): use Self instead of Arch in impl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- xtask/src/arch.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xtask/src/arch.rs b/xtask/src/arch.rs index 77f841ab74..7feb6bf0f8 100644 --- a/xtask/src/arch.rs +++ b/xtask/src/arch.rs @@ -27,19 +27,19 @@ impl Arch { pub fn hermit_triple(&self) -> &'static str { match self { - Arch::X86_64 => "x86_64-unknown-hermit", - Arch::Aarch64 => "aarch64-unknown-hermit", + Self::X86_64 => "x86_64-unknown-hermit", + Self::Aarch64 => "aarch64-unknown-hermit", } } pub fn builtins_cargo_args(&self) -> &'static [&'static str] { match self { - Arch::X86_64 => &[ + Self::X86_64 => &[ "--target=x86_64-unknown-hermit", "-Zbuild-std=core", "-Zbuild-std-features=compiler-builtins-mem", ], - Arch::Aarch64 => &[ + Self::Aarch64 => &[ "--target=aarch64-unknown-hermit", "-Zbuild-std=core", "-Zbuild-std-features=compiler-builtins-mem", @@ -62,11 +62,11 @@ impl Arch { pub fn ci_cargo_args(&self) -> &'static [&'static str] { match self { - Arch::X86_64 => &[ + Self::X86_64 => &[ "--target=x86_64-unknown-hermit", "-Zbuild-std=std,panic_abort", ], - Arch::Aarch64 => &[ + Self::Aarch64 => &[ "--target=aarch64-unknown-hermit", "-Zbuild-std=std,panic_abort", ],