Skip to content

Commit a19b52a

Browse files
committed
Update Rust to v1.83.0
1 parent 6c158ef commit a19b52a

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ jobs:
8383
# https://github.com/rust-lang/rustup/issues/2441
8484
#
8585
# for more information.
86-
rustup toolchain install 1.81.0 --no-self-update # [ref:rust_1.81.0]
87-
rustup default 1.81.0 # [ref:rust_1.81.0]
86+
rustup toolchain install 1.83.0 --no-self-update # [ref:rust_1.83.0]
87+
rustup default 1.83.0 # [ref:rust_1.83.0]
8888
8989
# Add the targets.
9090
rustup target add x86_64-pc-windows-msvc
@@ -124,8 +124,8 @@ jobs:
124124
set -euxo pipefail
125125
126126
# Install the appropriate version of Rust.
127-
rustup toolchain install 1.81.0 # [ref:rust_1.81.0]
128-
rustup default 1.81.0 # [ref:rust_1.81.0]
127+
rustup toolchain install 1.83.0 # [ref:rust_1.83.0]
128+
rustup default 1.83.0 # [ref:rust_1.83.0]
129129
130130
# Add the targets.
131131
rustup target add x86_64-apple-darwin
@@ -198,8 +198,8 @@ jobs:
198198
set -euxo pipefail
199199
200200
# Install the appropriate version of Rust.
201-
rustup toolchain install 1.81.0 # [ref:rust_1.81.0]
202-
rustup default 1.81.0 # [ref:rust_1.81.0]
201+
rustup toolchain install 1.83.0 # [ref:rust_1.83.0]
202+
rustup default 1.83.0 # [ref:rust_1.83.0]
203203
204204
# Fetch the program version.
205205
VERSION="$(cargo pkgid | cut -d# -f2 | cut -d: -f2)"

src/failure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl fmt::Display for Failure {
2424
}
2525

2626
impl error::Error for Failure {
27-
fn source<'a>(&'a self) -> Option<&(dyn error::Error + 'static)> {
27+
fn source<'a>(&'a self) -> Option<&'a (dyn error::Error + 'static)> {
2828
match self {
2929
Self::System(_, source) => source.as_ref().map(|e| &**e),
3030
Self::User(_, source) => source.as_ref().map(|e| &**e),

src/toastfile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl Display for MappingPath {
7979

8080
struct MappingPathVisitor;
8181

82-
impl<'de> serde::de::Visitor<'de> for MappingPathVisitor {
82+
impl serde::de::Visitor<'_> for MappingPathVisitor {
8383
type Value = MappingPath;
8484

8585
fn expecting(&self, formatter: &mut Formatter) -> std::fmt::Result {

toast.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ command_prefix: |
1717
cargo-offline () { cargo --frozen --offline "$@"; }
1818
1919
# Use this wrapper for formatting code or checking that code is formatted. We use a nightly Rust
20-
# version for the `trailing_comma` formatting option [tag:rust_fmt_nightly_2024-09-06]. The
20+
# version for the `trailing_comma` formatting option [tag:rust_fmt_nightly_2024-11-28]. The
2121
# nightly version was chosen as the latest available release with all components present
2222
# according to this page:
2323
# https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html
24-
cargo-fmt () { cargo +nightly-2024-09-06 --frozen --offline fmt --all -- "$@"; }
24+
cargo-fmt () { cargo +nightly-2024-11-28 --frozen --offline fmt --all -- "$@"; }
2525
2626
# Make Bash log commands.
2727
set -x
@@ -92,18 +92,18 @@ tasks:
9292
- install_packages
9393
- create_user
9494
command: |
95-
# Install stable Rust [tag:rust_1.81.0].
95+
# Install stable Rust [tag:rust_1.83.0].
9696
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
9797
-y \
98-
--default-toolchain 1.81.0 \
98+
--default-toolchain 1.83.0 \
9999
--profile minimal \
100100
--component clippy
101101
102102
# Add Rust tools to `$PATH`.
103103
. "$HOME/.cargo/env"
104104
105-
# Install nightly Rust [ref:rust_fmt_nightly_2024-09-06].
106-
rustup toolchain install nightly-2024-09-06 --profile minimal --component rustfmt
105+
# Install nightly Rust [ref:rust_fmt_nightly_2024-11-28].
106+
rustup toolchain install nightly-2024-11-28 --profile minimal --component rustfmt
107107
108108
install_tools:
109109
description: Install the tools needed to build and validate the program.

0 commit comments

Comments
 (0)