From b920b3d50b53b5cfacd913d8a0f3b3d3f8111b45 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 17 Feb 2018 01:01:38 +0300 Subject: Use stable rustfmt-preview --- .travis.yml | 8 ++------ src/parser/input.rs | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3134fd04..866d9138f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,15 +2,11 @@ language: rust matrix: include: - - - rust: nightly-2018-01-26 + - rust: stable before_script: - rustup component add rustfmt-preview script: - - cargo fmt -- --write-mode=diff - - - rust: stable - script: + - cargo fmt --all -- --write-mode=diff - cargo test branches: diff --git a/src/parser/input.rs b/src/parser/input.rs index 4d74ac1b1..13589467b 100644 --- a/src/parser/input.rs +++ b/src/parser/input.rs @@ -5,9 +5,7 @@ use super::is_insignificant; use std::ops::{Add, AddAssign}; pub(crate) struct ParserInput<'t> { - #[allow(unused)] text: &'t str, - #[allow(unused)] start_offsets: Vec, tokens: Vec, // non-whitespace tokens } -- cgit v1.2.3