diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 07c70ee..a94be15 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -47,7 +47,7 @@ jobs: - bans licenses sources steps: - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@v1 + - uses: EmbarkStudios/cargo-deny-action@v2 with: command: check ${{ matrix.checks }} rust-version: stable diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1b000ab..7b55a3d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -24,4 +24,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 + with: + python-version: '3.x' - uses: pre-commit/action@v3.0.1 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e8ca6c5..ea8bee7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,7 +53,7 @@ We ask that commits are atomic, meaning they are complete and have a single resp PRs should tell a cohesive story, with test and refactor commits that keep the fix or feature commits simple and clear. -Specifically, we would encouage +Specifically, we would encourage - File renames be isolated into their own commit - Add tests in a commit before their feature or fix, showing the current behavior. The diff for the feature/fix commit will then show how the behavior changed, diff --git a/Cargo.toml b/Cargo.toml index 3c6f1d1..07b3673 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,6 +83,7 @@ string_lit_as_bytes = "warn" string_to_string = "warn" todo = "warn" trait_duplication_in_bounds = "warn" +uninlined_format_args = "warn" verbose_file_reads = "warn" wildcard_imports = "warn" zero_sized_map_values = "warn" diff --git a/src/main.rs b/src/main.rs index 5eefe5c..e8f4f53 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,7 @@ fn list(args: args::ListArgs) -> proc_exit::ExitResult { writeln!( stdout, "{}", - Styled::new(format_args!("Message: {}", message), style) + Styled::new(format_args!("Message: {message}"), style) ) .with_code(proc_exit::Code::FAILURE)?; } @@ -125,7 +125,7 @@ fn list(args: args::ListArgs) -> proc_exit::ExitResult { writeln!( stdout, "{}", - Styled::new(format_args!("- {}: {}", name, summary), style), + Styled::new(format_args!("- {name}: {summary}"), style), ) .with_code(proc_exit::Code::FAILURE)?; }