From 76a911b34ed9fa1da28782b5c7f6b5f3c711d1df Mon Sep 17 00:00:00 2001 From: Max Countryman Date: Fri, 31 Jul 2020 08:56:59 -0700 Subject: [PATCH 1/2] ensure we use nightly with fmt --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a53e0babc..aed1a371a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -15,7 +15,7 @@ jobs: # it's an unstable feature. rust-version: nightly - uses: actions/checkout@v2 - - run: cargo fmt -- --check --config-path <(echo 'license_template_path = "HEADER"') + - run: cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"') lint: runs-on: ubuntu-latest From cac3a8ec1e02a5ec758a8a9ab3bbc0abd4022d7c Mon Sep 17 00:00:00 2001 From: Max Countryman Date: Fri, 31 Jul 2020 09:01:32 -0700 Subject: [PATCH 2/2] provide missing license header --- tests/sqlparser_regression.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/sqlparser_regression.rs b/tests/sqlparser_regression.rs index 26a5e7d4c..5262ff7aa 100644 --- a/tests/sqlparser_regression.rs +++ b/tests/sqlparser_regression.rs @@ -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. + use sqlparser::dialect::GenericDialect; use sqlparser::parser::Parser;