Skip to content

Commit

Permalink
Format code and add Travis checks for formatting (#5)
Browse files Browse the repository at this point in the history
* Apply rustfmt style to code

* Fail Travis builds that need rustfmt changes
  • Loading branch information
ryanq committed Dec 31, 2018
1 parent 71b8278 commit fb8e338
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 162 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -20,8 +20,10 @@ rust:

before_script:
- export PATH=$HOME/.cargo/bin:$PATH # for cargo subcommands
- rustup component add rustfmt-preview

script:
- cargo fmt -- --check
- cargo build
- cargo test
# - cargo bench
Expand Down

0 comments on commit fb8e338

Please sign in to comment.