mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Bump Rust to 1.83 (#5534)
This commit is contained in:
parent
caa72f4ec2
commit
0228462ba1
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@1.82.0
|
||||
- uses: dtolnay/rust-toolchain@1.83.0
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: cargo test --workspace --no-run
|
||||
- run: cargo test --workspace --no-fail-fast
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@1.82.0
|
||||
- uses: dtolnay/rust-toolchain@1.83.0
|
||||
with:
|
||||
components: clippy, rustfmt
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@1.82.0
|
||||
- uses: dtolnay/rust-toolchain@1.83.0
|
||||
with:
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
|
@ -45,7 +45,7 @@ impl<T> Repeatable<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> GridLayouter<'a> {
|
||||
impl GridLayouter<'_> {
|
||||
/// Layouts the header's rows.
|
||||
/// Skips regions as necessary.
|
||||
pub fn layout_header(
|
||||
|
@ -85,7 +85,7 @@ pub struct CellMeasurementData<'layouter> {
|
||||
pub frames_in_previous_regions: usize,
|
||||
}
|
||||
|
||||
impl<'a> GridLayouter<'a> {
|
||||
impl GridLayouter<'_> {
|
||||
/// Layout a rowspan over the already finished regions, plus the current
|
||||
/// region's frame and resolved rows, if it wasn't finished yet (because
|
||||
/// we're being called from `finish_region`, but note that this function is
|
||||
|
@ -38,7 +38,7 @@ pub struct Line<'a> {
|
||||
pub dash: Option<Dash>,
|
||||
}
|
||||
|
||||
impl<'a> Line<'a> {
|
||||
impl Line<'_> {
|
||||
/// Create an empty line.
|
||||
pub fn empty() -> Self {
|
||||
Self {
|
||||
@ -685,7 +685,7 @@ impl<'a> Deref for Items<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> DerefMut for Items<'a> {
|
||||
impl DerefMut for Items<'_> {
|
||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||
&mut self.0
|
||||
}
|
||||
|
@ -350,6 +350,7 @@ impl Route<'_> {
|
||||
}
|
||||
|
||||
#[comemo::track]
|
||||
#[allow(clippy::needless_lifetimes)]
|
||||
impl<'a> Route<'a> {
|
||||
/// Whether the given id is part of the route.
|
||||
pub fn contains(&self, id: FileId) -> bool {
|
||||
|
@ -203,6 +203,7 @@ impl<'a> Locator<'a> {
|
||||
}
|
||||
|
||||
#[comemo::track]
|
||||
#[allow(clippy::needless_lifetimes)]
|
||||
impl<'a> Locator<'a> {
|
||||
/// Resolves the locator based on its local and the outer information.
|
||||
fn resolve(&self) -> Resolved {
|
||||
|
@ -93,7 +93,7 @@ struct State<'a> {
|
||||
size: Size,
|
||||
}
|
||||
|
||||
impl<'a> State<'a> {
|
||||
impl State<'_> {
|
||||
fn new(size: Size, transform: sk::Transform, pixel_per_pt: f32) -> Self {
|
||||
Self {
|
||||
size,
|
||||
|
@ -767,7 +767,7 @@ impl<'a> LinkedNode<'a> {
|
||||
}
|
||||
|
||||
/// Access to parents and siblings.
|
||||
impl<'a> LinkedNode<'a> {
|
||||
impl LinkedNode<'_> {
|
||||
/// Get this node's parent.
|
||||
pub fn parent(&self) -> Option<&Self> {
|
||||
self.parent.as_deref()
|
||||
@ -825,7 +825,7 @@ pub enum Side {
|
||||
}
|
||||
|
||||
/// Access to leaves.
|
||||
impl<'a> LinkedNode<'a> {
|
||||
impl LinkedNode<'_> {
|
||||
/// Get the rightmost non-trivia leaf before this node.
|
||||
pub fn prev_leaf(&self) -> Option<Self> {
|
||||
let mut node = self.clone();
|
||||
|
@ -1911,7 +1911,7 @@ struct PartialState {
|
||||
}
|
||||
|
||||
/// The Memoization interface.
|
||||
impl<'s> Parser<'s> {
|
||||
impl Parser<'_> {
|
||||
/// Store the already parsed nodes and the parser state into the memo map by
|
||||
/// extending the arena and storing the extended range and a checkpoint.
|
||||
fn memoize_parsed_nodes(&mut self, key: MemoKey, prev_len: usize) {
|
||||
@ -1967,7 +1967,7 @@ impl<'s> Parser<'s> {
|
||||
|
||||
/// Functions for eating expected or unexpected tokens and generating errors if
|
||||
/// we don't get what we expect.
|
||||
impl<'s> Parser<'s> {
|
||||
impl Parser<'_> {
|
||||
/// Consume the given `kind` or produce an error.
|
||||
fn expect(&mut self, kind: SyntaxKind) -> bool {
|
||||
let at = self.at(kind);
|
||||
|
@ -13,7 +13,7 @@ struct CliResolver<'a> {
|
||||
base: &'a str,
|
||||
}
|
||||
|
||||
impl<'a> Resolver for CliResolver<'a> {
|
||||
impl Resolver for CliResolver<'_> {
|
||||
fn commits(&self, from: &str, to: &str) -> Vec<typst_docs::Commit> {
|
||||
if self.verbose {
|
||||
eprintln!("commits({from}, {to})");
|
||||
|
6
flake.lock
generated
6
flake.lock
generated
@ -112,13 +112,13 @@
|
||||
"rust-manifest": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"narHash": "sha256-7BORPQOFj1mTsyFBkfImqoE4gwyZfPLYXFFPXPVbo4A=",
|
||||
"narHash": "sha256-Yqu2/i9170R7pQhvOCR1f5SyFr7PcFbO6xcMr9KWruQ=",
|
||||
"type": "file",
|
||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.82.0.toml"
|
||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.83.0.toml"
|
||||
},
|
||||
"original": {
|
||||
"type": "file",
|
||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.82.0.toml"
|
||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.83.0.toml"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user