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 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;