Skip to content

Commit

Permalink
Merge pull request #909 from mkroening/arch-self
Browse files Browse the repository at this point in the history
style(xtask): use Self instead of Arch in impl
  • Loading branch information
mkroening authored Sep 11, 2023
2 parents 2c9fdef + fea46f6 commit 52cb25e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xtask/src/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
],
Expand Down

0 comments on commit 52cb25e

Please sign in to comment.