aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-16 22:01:38 +0000
committerAleksey Kladov <[email protected]>2018-02-16 22:05:07 +0000
commitb920b3d50b53b5cfacd913d8a0f3b3d3f8111b45 (patch)
tree9d57aa9ab56b37b9446236e37ae8d7e88a1cd153
parent97c0258bc07efe0cc41b7420a2294040e254d0b2 (diff)
Use stable rustfmt-preview
-rw-r--r--.travis.yml8
-rw-r--r--src/parser/input.rs2
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
2 2
3matrix: 3matrix:
4 include: 4 include:
5 5 - rust: stable
6 - rust: nightly-2018-01-26
7 before_script: 6 before_script:
8 - rustup component add rustfmt-preview 7 - rustup component add rustfmt-preview
9 script: 8 script:
10 - cargo fmt -- --write-mode=diff 9 - cargo fmt --all -- --write-mode=diff
11
12 - rust: stable
13 script:
14 - cargo test 10 - cargo test
15 11
16branches: 12branches:
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;
5use std::ops::{Add, AddAssign}; 5use std::ops::{Add, AddAssign};
6 6
7pub(crate) struct ParserInput<'t> { 7pub(crate) struct ParserInput<'t> {
8 #[allow(unused)]
9 text: &'t str, 8 text: &'t str,
10 #[allow(unused)]
11 start_offsets: Vec<TextUnit>, 9 start_offsets: Vec<TextUnit>,
12 tokens: Vec<Token>, // non-whitespace tokens 10 tokens: Vec<Token>, // non-whitespace tokens
13} 11}