From f65aef186c5e056d11c3c19c4784b165e7a37a01 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:14:50 +0000 Subject: [PATCH] chore(deps): update msrv to v1.72 --- .clippy.toml | 2 +- .github/workflows/ci.yml | 6 +++--- Cargo.toml | 2 +- crates/committed/src/checks.rs | 2 +- crates/committed/src/main.rs | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index e88edc9..81d631e 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1,4 +1,4 @@ -msrv = "1.70.0" # MSRV +msrv = "1.72" # MSRV warn-on-all-wildcard-imports = true allow-expect-in-tests = true allow-unwrap-in-tests = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c02bd23..443194d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - name: No-default features run: cargo test --workspace --no-default-features msrv: - name: "Check MSRV: 1.70.0" + name: "Check MSRV: 1.72" runs-on: ubuntu-latest steps: - name: Checkout repository @@ -57,7 +57,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.70" # MSRV + toolchain: "1.72" # MSRV - uses: Swatinem/rust-cache@v2 - name: Default features run: cargo check --workspace --all-targets @@ -119,7 +119,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.70" # MSRV + toolchain: "1.72" # MSRV components: clippy - uses: Swatinem/rust-cache@v2 - name: Install SARIF tools diff --git a/Cargo.toml b/Cargo.toml index 58f68b0..a9bb1b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ resolver = "2" license = "MIT OR Apache-2.0" repository = "https://github.com/crate-ci/committed" edition = "2021" -rust-version = "1.70.0" # MSRV +rust-version = "1.72" # MSRV include = [ "build.rs", "src/**/*", diff --git a/crates/committed/src/checks.rs b/crates/committed/src/checks.rs index 70c3091..ff4da3b 100644 --- a/crates/committed/src/checks.rs +++ b/crates/committed/src/checks.rs @@ -297,7 +297,7 @@ fn check_allowed_types( // For Gitlab's rules, see https://docs.gitlab.com/ee/user/project/merge_requests/work_in_progress_merge_requests.html static WIP_RE: once_cell::sync::Lazy = once_cell::sync::Lazy::new(|| { - regex::Regex::new(r#"^(wip\b|WIP\b|\[WIP\]|Draft\b|\[Draft\]|\(Draft\))"#).unwrap() + regex::Regex::new(r"^(wip\b|WIP\b|\[WIP\]|Draft\b|\[Draft\]|\(Draft\))").unwrap() }); pub fn check_wip( diff --git a/crates/committed/src/main.rs b/crates/committed/src/main.rs index 6b8fff3..17c62ce 100644 --- a/crates/committed/src/main.rs +++ b/crates/committed/src/main.rs @@ -298,7 +298,7 @@ fn trim_commit_file(message: &str) -> &str { return ""; } - let all_comment_re = regex::RegexBuilder::new(r#"^(#[^\n]*\n*)+$"#) + let all_comment_re = regex::RegexBuilder::new(r"^(#[^\n]*\n*)+$") .dot_matches_new_line(true) .build() .expect("test ensured regex compiles"); @@ -313,7 +313,7 @@ fn trim_commit_file(message: &str) -> &str { message }; - let trailing_comment_re = regex::RegexBuilder::new(r#"^(.*?)(\n+#[^\n]*)*$"#) + let trailing_comment_re = regex::RegexBuilder::new(r"^(.*?)(\n+#[^\n]*)*$") .dot_matches_new_line(true) .build() .expect("test ensured regex compiles");