From 5ff08708c5e7d5b127d8583ff2be09a90d2e0e42 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Mon, 25 Oct 2021 18:39:09 +0100 Subject: [PATCH] chore: upgrade to edition 2021 (#3171) --- .github/workflows/security-audit.yml | 22 +++++++++++++++------- Cargo.toml | 2 +- starship_module_config_derive/Cargo.toml | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index bff42038..81ee3ed0 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -2,20 +2,28 @@ name: Security audit on: pull_request: paths: - - '**/Cargo.toml' - - '**/Cargo.lock' + - "**/Cargo.toml" + - "**/Cargo.lock" push: paths: - - '**/Cargo.toml' - - '**/Cargo.lock' + - "**/Cargo.toml" + - "**/Cargo.lock" schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" jobs: security_audit: if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.5 - - uses: actions-rs/audit-check@v1.2.0 + - name: Setup | Checkout + uses: actions/checkout@v2.3.5 + - name: Setup | Rust + uses: actions-rs/toolchain@v1.0.7 + with: + toolchain: stable + override: true + profile: minimal + - name: Test | Security Audit + uses: actions-rs/audit-check@v1.2.0 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 92de92d9..5c335c31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "starship" version = "0.58.0" -edition = "2018" +edition = "2021" authors = ["Matan Kushner "] homepage = "https://starship.rs" documentation = "https://starship.rs/guide/" diff --git a/starship_module_config_derive/Cargo.toml b/starship_module_config_derive/Cargo.toml index 928eef5f..736dc841 100644 --- a/starship_module_config_derive/Cargo.toml +++ b/starship_module_config_derive/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "starship_module_config_derive" version = "0.2.1" -edition = "2018" +edition = "2021" authors = ["Matan Kushner "] homepage = "https://starship.rs" documentation = "https://starship.rs/guide/"