You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/simd-test-macro/src/lib.rs
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,8 @@ pub fn simd_test(
53
53
let item = TokenStream::from(item);
54
54
let name = find_name(item.clone());
55
55
56
-
let name:TokenStream = name.as_str().parse()
56
+
let name:TokenStream = name.as_str()
57
+
.parse()
57
58
.expect(&format!("failed to parse name: {}", name.clone().as_str()));
58
59
59
60
let default_target = ifcfg!(target_os = "windows"){
@@ -66,28 +67,34 @@ pub fn simd_test(
66
67
None
67
68
};
68
69
69
-
let target = env::var("TARGET").unwrap_or_else(|_| default_target.expect("TARGET environment variable not set and no default target known for the current target.").to_string());
70
+
let target = env::var("TARGET").unwrap_or_else(|_| {
71
+
default_target.expect("TARGET environment variable not set and no default target known for the current target.").to_string()
72
+
});
70
73
letmut force_test = false;
71
-
let macro_test = match target.split('-').next()
72
-
.expect(&format!("target triple contained no \"-\": {}", target)){
74
+
let macro_test = match target
75
+
.split('-')
76
+
.next()
77
+
.expect(&format!("target triple contained no \"-\": {}", target))
0 commit comments