Skip to content

Commit

Permalink
Merge pull request #366 from crate-ci/renovate/rust-1.x
Browse files Browse the repository at this point in the history
chore(deps): update msrv to v1.72
  • Loading branch information
epage committed Jan 24, 2024
2 parents 5afefcc + f65aef1 commit 8e77a34
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ 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
uses: actions/checkout@v4
- 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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*",
Expand Down
2 changes: 1 addition & 1 deletion crates/committed/src/checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<regex::Regex> = 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(
Expand Down
4 changes: 2 additions & 2 deletions crates/committed/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 8e77a34

Please sign in to comment.