summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-06-02 18:44:43 +0200
committerGitHub <noreply@github.com>2025-06-02 16:44:43 +0000
commite023db5f1dea8b0273eec0f528d6ae0fed118a65 (patch)
tree321ebc6a1ad30c27eb255ce005c5123dd56b5cfb
parent6164ade9cecf1f7bf475d24e0123c3664b8490a8 (diff)
Bump Rust to 1.87 in CI (#6367)
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/release.yml2
-rw-r--r--crates/typst-kit/src/download.rs3
-rw-r--r--crates/typst-library/src/text/deco.rs1
-rw-r--r--crates/typst-macros/src/cast.rs1
-rw-r--r--crates/typst/src/lib.rs1
-rw-r--r--flake.lock6
-rw-r--r--flake.nix2
8 files changed, 10 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 41f17d13..c5c81537 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,7 +40,7 @@ jobs:
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y gcc-multilib libssl-dev:i386 pkg-config:i386
- - uses: dtolnay/rust-toolchain@1.85.0
+ - uses: dtolnay/rust-toolchain@1.87.0
with:
targets: ${{ matrix.bits == 32 && 'i686-unknown-linux-gnu' || '' }}
- uses: Swatinem/rust-cache@v2
@@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: dtolnay/rust-toolchain@1.85.0
+ - uses: dtolnay/rust-toolchain@1.87.0
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0d235aec..ca317abd 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -44,7 +44,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: dtolnay/rust-toolchain@1.85.0
+ - uses: dtolnay/rust-toolchain@1.87.0
with:
target: ${{ matrix.target }}
diff --git a/crates/typst-kit/src/download.rs b/crates/typst-kit/src/download.rs
index 40084e51..a4d49b4f 100644
--- a/crates/typst-kit/src/download.rs
+++ b/crates/typst-kit/src/download.rs
@@ -128,8 +128,7 @@ impl Downloader {
}
// Configure native TLS.
- let connector =
- tls.build().map_err(|err| io::Error::new(io::ErrorKind::Other, err))?;
+ let connector = tls.build().map_err(io::Error::other)?;
builder = builder.tls_connector(Arc::new(connector));
builder.build().get(url).call()
diff --git a/crates/typst-library/src/text/deco.rs b/crates/typst-library/src/text/deco.rs
index 485d0edc..7aa06e81 100644
--- a/crates/typst-library/src/text/deco.rs
+++ b/crates/typst-library/src/text/deco.rs
@@ -373,6 +373,7 @@ pub struct Decoration {
/// A kind of decorative line.
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
+#[allow(clippy::large_enum_variant)]
pub enum DecoLine {
Underline {
stroke: Stroke<Abs>,
diff --git a/crates/typst-macros/src/cast.rs b/crates/typst-macros/src/cast.rs
index b90b7888..6f4b2b95 100644
--- a/crates/typst-macros/src/cast.rs
+++ b/crates/typst-macros/src/cast.rs
@@ -185,6 +185,7 @@ struct Cast {
}
/// A pattern in a cast, e.g.`"ascender"` or `v: i64`.
+#[allow(clippy::large_enum_variant)]
enum Pattern {
Str(syn::LitStr),
Ty(syn::Pat, syn::Type),
diff --git a/crates/typst/src/lib.rs b/crates/typst/src/lib.rs
index 580ba9e8..a6bb4fe3 100644
--- a/crates/typst/src/lib.rs
+++ b/crates/typst/src/lib.rs
@@ -27,7 +27,6 @@
//! [module]: crate::foundations::Module
//! [content]: crate::foundations::Content
//! [laid out]: typst_layout::layout_document
-//! [document]: crate::model::Document
//! [frame]: crate::layout::Frame
pub extern crate comemo;
diff --git a/flake.lock b/flake.lock
index ad47d29c..dedfbb4e 100644
--- a/flake.lock
+++ b/flake.lock
@@ -112,13 +112,13 @@
"rust-manifest": {
"flake": false,
"locked": {
- "narHash": "sha256-irgHsBXecwlFSdmP9MfGP06Cbpca2QALJdbN4cymcko=",
+ "narHash": "sha256-BwfxWd/E8gpnXoKsucFXhMbevMlVgw3l0becLkIcWCU=",
"type": "file",
- "url": "https://static.rust-lang.org/dist/channel-rust-1.85.0.toml"
+ "url": "https://static.rust-lang.org/dist/channel-rust-1.87.0.toml"
},
"original": {
"type": "file",
- "url": "https://static.rust-lang.org/dist/channel-rust-1.85.0.toml"
+ "url": "https://static.rust-lang.org/dist/channel-rust-1.87.0.toml"
}
},
"systems": {
diff --git a/flake.nix b/flake.nix
index 6938f6e5..1b2b3abc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,7 +10,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
rust-manifest = {
- url = "https://static.rust-lang.org/dist/channel-rust-1.85.0.toml";
+ url = "https://static.rust-lang.org/dist/channel-rust-1.87.0.toml";
flake = false;
};
};