mirror of
https://github.com/typst/typst
synced 2025-06-07 04:36:24 +08:00
Bump Rust to 1.87 in CI (#6367)
This commit is contained in:
parent
6164ade9ce
commit
e023db5f1d
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
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.85.0
|
||||
- uses: dtolnay/rust-toolchain@1.87.0
|
||||
with:
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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>,
|
||||
|
@ -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),
|
||||
|
@ -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;
|
||||
|
6
flake.lock
generated
6
flake.lock
generated
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user