Merge pull request #121 from andygrove/ci-fmt

Check that CI enforces rustfmt
This commit is contained in:
Nikhil Benesch 2019-08-27 18:15:43 -04:00 committed by GitHub
commit 2bef9ec30a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View file

@ -49,7 +49,7 @@ script:
- travis-cargo clippy -- --all-targets --all-features -- -D warnings
- travis-cargo build
- travis-cargo test
- travis-cargo --only nightly fmt -- -- --check --config-path <(echo 'license_template_path = "HEADER"')
- cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
after_success:
- cargo coveralls --verbose

View file

@ -1,3 +1,15 @@
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! AST types specific to CREATE/ALTER variants of [Statement]
//! (commonly referred to as Data Definition Language, or DDL)
use super::{display_comma_separated, DataType, Expr, Ident, ObjectName};

View file

@ -789,5 +789,4 @@ mod tests {
//println!("------------------------------");
assert_eq!(expected, actual);
}
}