Skip to content

Commit 2bef9ec

Browse files
authored
Merge pull request #121 from andygrove/ci-fmt
Check that CI enforces rustfmt
2 parents 35a2009 + 070d019 commit 2bef9ec

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ script:
4949
- travis-cargo clippy -- --all-targets --all-features -- -D warnings
5050
- travis-cargo build
5151
- travis-cargo test
52-
- travis-cargo --only nightly fmt -- -- --check --config-path <(echo 'license_template_path = "HEADER"')
52+
- cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
5353

5454
after_success:
5555
- cargo coveralls --verbose

src/ast/ddl.rs

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

src/tokenizer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,5 +789,4 @@ mod tests {
789789
//println!("------------------------------");
790790
assert_eq!(expected, actual);
791791
}
792-
793792
}

0 commit comments

Comments
 (0)