From 2662bf8bbce99271809ac53d77c829979b63046e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Sun, 24 Nov 2019 15:07:56 +0100 Subject: [PATCH] travis: clippy and rustfmt --- .rustfmt.toml | 1 + .travis.yml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .rustfmt.toml 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