Skip to content

Commit

Permalink
chore(deps): update msrv to v1.73
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Feb 9, 2024
1 parent f61a932 commit 90fadf4
Show file tree
Hide file tree
Showing 5 changed files with 7 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.72" # MSRV
msrv = "1.73" # 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 @@ -47,15 +47,15 @@ jobs:
- name: No-default features
run: cargo test --workspace --no-default-features
msrv:
name: "Check MSRV: 1.72"
name: "Check MSRV: 1.73"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.72" # MSRV
toolchain: "1.73" # MSRV
- uses: Swatinem/rust-cache@v2
- name: Default features
run: cargo check --workspace --all-targets
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.72" # MSRV
toolchain: "1.73" # 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 @@ -8,7 +8,7 @@ resolver = "2"
license = "MIT OR Apache-2.0"
repository = "https://github.com/cobalt-org/cobalt.rs"
edition = "2021"
rust-version = "1.72" # MSRV
rust-version = "1.73" # MSRV
include = [
"build.rs",
"src/**/*",
Expand Down
3 changes: 1 addition & 2 deletions src/bin/cobalt/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,7 @@ fn prepend_date_to_filename(
file.extension()
.and_then(|os| os.to_str())
.unwrap_or_else(|| config
.page_extensions
.get(0)
.page_extensions.first()
.expect("at least one element is enforced by config validator"))
);
trace!("`publish_date_in_filename` setting is activated, prefix filename with date, new filename: {}", file_name);
Expand Down
2 changes: 1 addition & 1 deletion src/pagination/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn distribute_posts_by_tags<'a>(
.ok_or_else(|| anyhow::format_err!("Should have string tags"))?
.to_kstr()
.into_string();
let cur_tag = per_tags.entry(tag).or_insert_with(Vec::new);
let cur_tag = per_tags.entry(tag).or_default();
cur_tag.push(post);
}
}
Expand Down

0 comments on commit 90fadf4

Please sign in to comment.