Skip to content

Commit

Permalink
Merge f0c4faa into 21630c4
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jan 1, 2021
2 parents 21630c4 + f0c4faa commit 2ff97c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion heim-disk/src/lib.rs
Expand Up @@ -21,7 +21,7 @@
unused_import_braces,
unused_results
)]
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::missing_safety_doc, clippy::match_like_matches_macro)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod os;
Expand Down
2 changes: 1 addition & 1 deletion heim-host/src/sys/unix/platform.rs
Expand Up @@ -81,7 +81,7 @@ fn arch_from_uname(raw: &str) -> Option<Arch> {
};

match raw {
"armv7" | "armv7l" => Some(Arch::ARM),
"armv7" | "armv7l" | "arm64" => Some(Arch::ARM),
"ppc64" | "ppc64le" => Some(Arch::POWERPC64),
_ => None,
}
Expand Down
2 changes: 2 additions & 0 deletions heim-virt/src/lib.rs
Expand Up @@ -105,6 +105,7 @@ pub enum Virtualization {
}

impl Virtualization {
#[allow(clippy::match_like_matches_macro)]
/// Returns `true` if it is a Virtual Machine virtualization.
pub fn is_vm(&self) -> bool {
match self {
Expand All @@ -123,6 +124,7 @@ impl Virtualization {
}
}

#[allow(clippy::match_like_matches_macro)]
/// Returns `true` if it is a container virtualization.
pub fn is_container(&self) -> bool {
match self {
Expand Down

0 comments on commit 2ff97c1

Please sign in to comment.