diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 770d08085..bf2b3b29c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,10 @@ jobs: toolchain: stable profile: minimal override: true - components: rustfmt, rust-src + components: rustfmt, clippy, rust-src - name: Checkout repository uses: actions/checkout@v2 - - run: cargo test --all-features && cargo test --no-default-features + - run: cargo fmt --all -- --check + - run: cargo clippy --all-features --all-targets -- -Dwarnings + - run: cargo test --all-features + - run: cargo test --no-default-features diff --git a/benches/parse.rs b/benches/parse.rs index b1f0edde1..58da45680 100644 --- a/benches/parse.rs +++ b/benches/parse.rs @@ -2,6 +2,8 @@ extern crate criterion; extern crate wkt; +use std::str::FromStr; + fn criterion_benchmark(c: &mut criterion::Criterion) { c.bench_function("parse small", |bencher| { let s = include_str!("./small.wkt");