chore: upgrade to edition 2021 (#3171)

This commit is contained in:
Matan Kushner 2021-10-25 18:39:09 +01:00 committed by GitHub
parent 39e7b78cb2
commit 5ff08708c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 9 deletions

View File

@ -2,20 +2,28 @@ name: Security audit
on: on:
pull_request: pull_request:
paths: paths:
- '**/Cargo.toml' - "**/Cargo.toml"
- '**/Cargo.lock' - "**/Cargo.lock"
push: push:
paths: paths:
- '**/Cargo.toml' - "**/Cargo.toml"
- '**/Cargo.lock' - "**/Cargo.lock"
schedule: schedule:
- cron: '0 0 * * *' - cron: "0 0 * * *"
jobs: jobs:
security_audit: security_audit:
if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule') if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.5 - name: Setup | Checkout
- uses: actions-rs/audit-check@v1.2.0 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: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,7 +1,7 @@
[package] [package]
name = "starship" name = "starship"
version = "0.58.0" version = "0.58.0"
edition = "2018" edition = "2021"
authors = ["Matan Kushner <hello@matchai.me>"] authors = ["Matan Kushner <hello@matchai.me>"]
homepage = "https://starship.rs" homepage = "https://starship.rs"
documentation = "https://starship.rs/guide/" documentation = "https://starship.rs/guide/"

View File

@ -1,7 +1,7 @@
[package] [package]
name = "starship_module_config_derive" name = "starship_module_config_derive"
version = "0.2.1" version = "0.2.1"
edition = "2018" edition = "2021"
authors = ["Matan Kushner <hello@matchai.me>"] authors = ["Matan Kushner <hello@matchai.me>"]
homepage = "https://starship.rs" homepage = "https://starship.rs"
documentation = "https://starship.rs/guide/" documentation = "https://starship.rs/guide/"