Browse Source

Fix `cargo fmt` for Travis

Stable Rust doesn't support `cargo fmt --check` (yet).
refactor-mempool
Roman Zeyde 7 years ago
parent
commit
253e244a86
No known key found for this signature in database GPG Key ID: 87CAE5FA46917CBB
  1. 3
      .travis.yml
  2. 5
      examples/load.rs

3
.travis.yml

@ -2,10 +2,9 @@ language: rust
cache: cargo
rust:
- stable
- beta
before_script:
- rustup component add rustfmt-preview
script:
- cargo fmt --all -- --check
- cargo fmt --all -- --write-mode=check
- cargo build --verbose
- cargo test --verbose

5
examples/load.rs

@ -5,10 +5,7 @@ extern crate log;
extern crate error_chain;
use electrs::{
bulk, config::Config, daemon::Daemon, errors::*, metrics::Metrics,
store::{DBStore},
};
use electrs::{bulk, config::Config, daemon::Daemon, errors::*, metrics::Metrics, store::DBStore};
use error_chain::ChainedError;

Loading…
Cancel
Save