Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Run cargo fmt after gir
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Jun 12, 2019
1 parent c78caaf commit 5a3e205
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ script:
cargo clippy --release;
fi
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ] && [ "$GTK" == "3.14" ] && ! [ "$ARM" == "1" ]; then
rustup component add rustfmt;
make regen_check;
fi
- if ! [ "$ARM" == "1" ]; then
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ GIR_FILES = gir-files/Glib-2.0.gir gir-files/GObject-2.0.gir

# Run `gir` generating the bindings
gir : src/auto/mod.rs src/gobject/auto/mod.rs
cargo fmt

doc: $(GIR) $(GIR_FILES)
$(GIR) -m doc -c Gir.toml
Expand All @@ -16,6 +17,7 @@ regen_check: $(GIR) $(GIR_FILES)
rm src/gobject/auto/*
$(GIR) -c Gir.toml
$(GIR) -c Gir_GObject.toml
cargo fmt
git diff -R --exit-code

src/auto/mod.rs : Gir.toml $(GIR) $(GIR_FILES)
Expand Down

0 comments on commit 5a3e205

Please sign in to comment.