We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7205e61 commit 06b788fCopy full SHA for 06b788f
1 file changed
arm-targets/src/lib.rs
@@ -40,7 +40,7 @@
40
//! cargo:rustc-check-cfg=cfg(arm_abi, values("eabi", "eabihf"))
41
//! ```
42
43
-use std::env;
+use std::{collections::HashSet, env};
44
45
#[derive(Default, Debug)]
46
pub struct TargetInfo {
@@ -265,7 +265,7 @@ impl Arch {
265
pub fn from_cargo_env() -> Option<Self> {
266
let arch = env::var("CARGO_CFG_TARGET_ARCH").ok()?;
267
let features = env::var("CARGO_CFG_TARGET_FEATURE").ok()?;
268
- let features = features.split(",").collect::<Vec<_>>();
+ let features: HashSet<&str> = features.split(",").collect();
269
270
if (arch == "arm" && features.contains(&"v8")) || arch == "aarch64" {
271
if features.contains(&"mclass") {
0 commit comments