mirror of
https://github.com/cobalt-org/cobalt.rs
synced 2024-11-10 14:24:12 +00:00
chore(deps): update msrv to v1.72
This commit is contained in:
parent
9281be9735
commit
9902aa2d88
6 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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/**/*",
|
||||
|
|
|
@ -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())),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue