Bump to Rust 1.80 (#4681)

This commit is contained in:
Laurenz 2024-08-05 12:54:30 +02:00 committed by GitHub
parent 6fbba6d73f
commit 9909f12d4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 6 deletions

View File

@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.79.0
- uses: dtolnay/rust-toolchain@1.80.0
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --no-run
- run: cargo test --workspace --no-fail-fast
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.79.0
- uses: dtolnay/rust-toolchain@1.80.0
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2

View File

@ -37,7 +37,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.79.0
- uses: dtolnay/rust-toolchain@1.80.0
with:
target: ${{ matrix.target }}

View File

@ -140,5 +140,6 @@ codegen-units = 1
strip = true
[workspace.lints.clippy]
uninlined_format_args = "warn"
blocks_in_conditions = "allow"
mutable_key_type = "allow"
uninlined_format_args = "warn"

View File

@ -305,7 +305,7 @@ impl<'a, R> Iterator for ColorFontMapIter<'a, R> {
/// A set of at most 256 glyphs (a limit imposed on Type3 fonts by the PDF
/// specification) that represents a part of a TTF font.
#[derive(PartialEq, Eq, Hash, Debug, Clone)]
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub struct ColorFontSlice {
/// The original TTF font.
pub font: Font,

View File

@ -1223,7 +1223,7 @@ impl<'a> CellGrid<'a> {
/// position. It is guaranteed to have a non-gutter, non-merged cell at
/// the returned position, due to how the grid is built.
/// - If the entry at the given position is a cell, returns the given
/// position.
/// position.
/// - If it is a merged cell, returns the parent cell's position.
/// - If it is a gutter cell, returns None.
#[track_caller]