Skip to content

Commit 2f614c5

Browse files
committed
disable rust-fmt in travis to see if our issue is rust-lang/rust#65424
1 parent 4bcd3fe commit 2f614c5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ matrix:
1818
env: TARGET=i686-unknown-linux-gnu
1919

2020
before_script:
21-
- cargo +nightly install --force rustfmt-nightly
21+
- cargo +nightly install
22+
#- cargo +nightly install --force rustfmt-nightly
2223

2324
script:
2425
- export PATH="/usr/include:$PATH"
25-
- cargo +nightly fmt --all -- --check
26+
#- cargo +nightly fmt --all -- --check
2627
- cargo test
2728
- cargo doc --no-deps
2829

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mod stats;
3333
mod stream;
3434

3535
pub use crate::{
36-
config::Config, errors::Error, handle::Handle, info::Info, packet::Packet, stats::Stats,
36+
config::Config, errors::Error, handle::Handle, info::Info, packet::Packet, stats::Stats, stats::EMPTY_STATS,
3737
stream::PacketStream,
3838
bridge_stream::BridgeStream
3939
};

src/stats.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub struct Stats {
55
pub dropped_by_interface: u32,
66
}
77

8-
//pub const EMPTY_STATS: Stats = Stats{ received: 0, dropped_by_kernel: 0, dropped_by_interface: 0 };
8+
pub const EMPTY_STATS: Stats = Default::default();
99

1010
impl Stats {
1111
pub fn combine(&self, other: &Stats) -> Stats {

0 commit comments

Comments
 (0)