diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..df99c69 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ +max_width = 80 diff --git a/.travis.yml b/.travis.yml index c0c85bf..1d9ab5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,13 @@ branches: before_script: - rustup target add thumbv7em-none-eabihf - # - rustup component add clippy + - rustup component add clippy + - rustup component add rustfmt script: - # - cargo clippy - "cargo build --target thumbv7em-none-eabihf --features \"$FEATURES\" $ARGS" + - cargo clippy + - cargo fmt --all -- --check notifications: email: false