mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Use stable rustfmt-preview
This commit is contained in:
parent
97c0258bc0
commit
b920b3d50b
2 changed files with 2 additions and 8 deletions
|
@ -2,15 +2,11 @@ language: rust
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
- rust: stable
|
||||||
- rust: nightly-2018-01-26
|
|
||||||
before_script:
|
before_script:
|
||||||
- rustup component add rustfmt-preview
|
- rustup component add rustfmt-preview
|
||||||
script:
|
script:
|
||||||
- cargo fmt -- --write-mode=diff
|
- cargo fmt --all -- --write-mode=diff
|
||||||
|
|
||||||
- rust: stable
|
|
||||||
script:
|
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
|
|
|
@ -5,9 +5,7 @@ use super::is_insignificant;
|
||||||
use std::ops::{Add, AddAssign};
|
use std::ops::{Add, AddAssign};
|
||||||
|
|
||||||
pub(crate) struct ParserInput<'t> {
|
pub(crate) struct ParserInput<'t> {
|
||||||
#[allow(unused)]
|
|
||||||
text: &'t str,
|
text: &'t str,
|
||||||
#[allow(unused)]
|
|
||||||
start_offsets: Vec<TextUnit>,
|
start_offsets: Vec<TextUnit>,
|
||||||
tokens: Vec<Token>, // non-whitespace tokens
|
tokens: Vec<Token>, // non-whitespace tokens
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue