Skip to content

Commit

Permalink
Fix bench build bug, added CI lints
Browse files Browse the repository at this point in the history
In order to auto-catch bugs and code quality,
adding clippy and fmt to CI (same as geo)
  • Loading branch information
nyurik committed Feb 24, 2022
1 parent 78f1682 commit 26f5db3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions benches/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 26f5db3

Please sign in to comment.