From 5b95c9b41ef61efe62b696a6eb21a5c95faff563 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Tue, 25 Jul 2023 11:06:46 +0200 Subject: [PATCH] chore: run pre-commit once --- .github/workflows/rust-check.yml | 4 ++-- .github/workflows/rust-clippy.yml | 4 ++-- .gitignore | 4 ++-- CODE_OF_CONDUCT.md | 1 - CONTRIBUTING.md | 2 +- Cargo.toml | 2 +- README.md | 2 +- winapps-cli/src/main.rs | 5 +++-- winapps-gui/Cargo.toml | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/rust-check.yml b/.github/workflows/rust-check.yml index c6da49b..f3d3a03 100644 --- a/.github/workflows/rust-check.yml +++ b/.github/workflows/rust-check.yml @@ -5,14 +5,14 @@ on: branches: [ "rewrite" ] pull_request: branches: [ "rewrite" ] - + env: CARGO_TERM_COLOR: always jobs: format: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v3 - uses: mirlahiji/rust-action@master diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 1e6a866..33a01d1 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -22,11 +22,11 @@ jobs: rust-clippy-analyze: name: Run rust-clippy analyzing runs-on: ubuntu-latest - + permissions: contents: read security-events: write - + steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index df3220d..c2819b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,10 @@ # Generated files target/ -# The library shouldn't decide about the exact versions of +# The library shouldn't decide about the exact versions of # its dependencies, but let the downstream crate decide. Cargo.lock # We don't want to commit IDE configuration files. .idea/ -.vscode/ \ No newline at end of file +.vscode/ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index d33878e..45d257b 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -131,4 +131,3 @@ For answers to common questions about this code of conduct, see the FAQ at [Mozilla CoC]: https://github.com/mozilla/diversity [FAQ]: https://www.contributor-covenant.org/faq [translations]: https://www.contributor-covenant.org/translations - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a600ba8..60f2f7f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,4 +3,4 @@ Thank you for contributing to winapps! Before you can contribute, we ask some things of you: - Please follow our Code of Conduct, the Contributor Covenant. You can find a copy in this repository or under https://www.contributor-covenant.org/ -- All Contributors have to sign [a CLA](https://gist.github.com/oskardotglobal/35f0a72eb45fcc7087e535561383dbc5) for legal reasons. When opening a PR, @cla-assitant will prompt you and guide you through the process. However, if you contribute on behalf of a legal entity, we ask of you to sign [a different CLA](https://gist.github.com/oskardotglobal/75a8cc056e56a439fa6a1551129ae47f). In that case, please contact us. \ No newline at end of file +- All Contributors have to sign [a CLA](https://gist.github.com/oskardotglobal/35f0a72eb45fcc7087e535561383dbc5) for legal reasons. When opening a PR, @cla-assitant will prompt you and guide you through the process. However, if you contribute on behalf of a legal entity, we ask of you to sign [a different CLA](https://gist.github.com/oskardotglobal/75a8cc056e56a439fa6a1551129ae47f). In that case, please contact us. diff --git a/Cargo.toml b/Cargo.toml index a54817b..8cd05f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,4 +3,4 @@ members = [ "winapps", "winapps-cli", "winapps-gui", -] \ No newline at end of file +] diff --git a/README.md b/README.md index 2d2ebbd..cc5e8b4 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ [![Rust Clippy](https://github.com/winapps-org/winapps/actions/workflows/rust-clippy.yml/badge.svg?branch=rewrite)](https://github.com/winapps-org/winapps/actions/workflows/rust-clippy.yml) [![Rust Check](https://github.com/winapps-org/winapps/actions/workflows/rust-check.yml/badge.svg?branch=rewrite)](https://github.com/winapps-org/winapps/actions/workflows/rust-check.yml) -The winapps rewrite project is a whole rewrite of the legacy winapps in rust. Its goal is to simplify the installation and provide a cleaner codebase. +The winapps rewrite project is a whole rewrite of the legacy winapps in rust. Its goal is to simplify the installation and provide a cleaner codebase. diff --git a/winapps-cli/src/main.rs b/winapps-cli/src/main.rs index 61ca1ec..a7af7dd 100644 --- a/winapps-cli/src/main.rs +++ b/winapps-cli/src/main.rs @@ -24,8 +24,9 @@ fn main() { println!("Connecting to remote"); } Some((_, _)) => { - cli.about("Command not found try existing ones!") - .print_help(); + cli.about("Command not found, try existing ones!") + .print_help() + .expect("Couldn't print help"); } _ => unreachable!(), } diff --git a/winapps-gui/Cargo.toml b/winapps-gui/Cargo.toml index 1ad1b98..771b90c 100644 --- a/winapps-gui/Cargo.toml +++ b/winapps-gui/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -winapps = { path = "../winapps" } \ No newline at end of file +winapps = { path = "../winapps" }