circleci: fix rustfmt
@@ -40,7 +40,7 @@ dependencies:
else
rustup default "nightly-${RUSTC_DATE}";
fi
- - test -e $HOME/.cargo/bin/cargo-fmt || cargo install --force --vers =0.6.0 rustfmt || true
+ - test -e $HOME/.cargo/bin/cargo-fmt || { rustup toolchain install stable && rustup run stable cargo install --force --vers =0.6.0 rustfmt; }
- |
if [[ ! -e $HOME/.local/lib/libgflags.a ]]; then
cd /tmp && \
