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

Commit 5a3e205

Browse files
committed
Run cargo fmt after gir
1 parent c78caaf commit 5a3e205

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ script:
6060
cargo clippy --release;
6161
fi
6262
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ] && [ "$GTK" == "3.14" ] && ! [ "$ARM" == "1" ]; then
63+
rustup component add rustfmt;
6364
make regen_check;
6465
fi
6566
- if ! [ "$ARM" == "1" ]; then

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GIR_FILES = gir-files/Glib-2.0.gir gir-files/GObject-2.0.gir
44

55
# Run `gir` generating the bindings
66
gir : src/auto/mod.rs src/gobject/auto/mod.rs
7+
cargo fmt
78

89
doc: $(GIR) $(GIR_FILES)
910
$(GIR) -m doc -c Gir.toml
@@ -16,6 +17,7 @@ regen_check: $(GIR) $(GIR_FILES)
1617
rm src/gobject/auto/*
1718
$(GIR) -c Gir.toml
1819
$(GIR) -c Gir_GObject.toml
20+
cargo fmt
1921
git diff -R --exit-code
2022

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

0 commit comments

Comments
 (0)