chore(deps): update msrv to v1.72

This commit is contained in:
renovate[bot] 2024-01-24 10:40:13 +00:00 committed by GitHub
parent 9281be9735
commit 9902aa2d88
6 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -47,7 +47,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
@ -55,7 +55,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
@ -117,7 +117,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

View file

@ -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.70.0" # MSRV
rust-version = "1.72" # MSRV
include = [
"build.rs",
"src/**/*",

View file

@ -131,7 +131,7 @@ fn walk_categories(
Some(&liquid::model::Value::array(category.cat_path.clone())),
)?;
if !cur_cat_paginators.is_empty() {
cur_cat_paginators_holder.extend(cur_cat_paginators.into_iter());
cur_cat_paginators_holder.extend(cur_cat_paginators);
} else {
let p = Paginator {
index_title: Some(liquid::model::Value::array(category.cat_path.clone())),

View file

@ -73,7 +73,7 @@ fn walk_dates(
let cur_date_paginators =
create_all_paginators(&date_holder.posts, doc, config, Some(&index_title))?;
if !cur_date_paginators.is_empty() {
cur_date_holder_paginators.extend(cur_date_paginators.into_iter());
cur_date_holder_paginators.extend(cur_date_paginators);
} else {
let p = Paginator {
index_title: Some(index_title),

View file

@ -165,7 +165,7 @@ fn interpret_permalink(
.unwrap_or_else(|| doc.url_path.clone())
} else {
let pagination_attr = pagination_attributes(page_num as i32);
attributes.extend(pagination_attr.into_iter());
attributes.extend(pagination_attr);
let index = index.map(index_to_string).unwrap_or_else(|| {
if config.include != Include::All {
unreachable!("Include is not All and no index");