We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 955af3e commit d54c31aCopy full SHA for d54c31a
ci/style.sh
@@ -9,6 +9,8 @@ if [ -n "${CI:-}" ]; then
9
check="--check"
10
fi
11
12
+cargo test --manifest-path libc-test/Cargo.toml --test style
13
+
14
command -v rustfmt
15
rustfmt -V
16
libc-test/test/style.rs
@@ -47,7 +47,12 @@ macro_rules! t {
47
}
48
49
#[test]
50
-fn main() {
+fn check_style() {
51
+ if env::var("LIBC_CI").is_ok() {
52
+ // we already run this in the style.sh script
53
+ return;
54
+ }
55
56
let arg = env::args().skip(1).next().unwrap_or("../src".to_string());
57
58
let mut errors = Errors { errs: false };
0 commit comments