Skip to content

Commit 96560f6

Browse files
committed
build: add rust-toolchain.toml and update to Rust 1.83
1 parent 77f5000 commit 96560f6

File tree

32 files changed

+49
-70
lines changed

32 files changed

+49
-70
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222
- run: sudo apt-get update && sudo apt-get install -y -qq build-essential pkg-config jq dpkg curl wget zstd cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler libfuse2 bash fish zsh shellcheck
23-
- uses: dtolnay/rust-toolchain@stable
23+
- uses: dtolnay/rust-toolchain@1.83
2424
id: toolchain
2525
with:
2626
components: clippy
@@ -41,6 +41,7 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343
- run: sudo apt-get update && sudo apt-get install -y -qq build-essential pkg-config jq dpkg curl wget zstd cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler libfuse2 bash fish zsh shellcheck
44+
# this needs to be nightly for code coverage
4445
- uses: dtolnay/rust-toolchain@nightly
4546
id: toolchain
4647
with:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,4 @@ book/
4848

4949
.env*
5050

51-
rust-toolchain.toml
52-
5351
run-build.sh

crates/alacritty_terminal/src/grid/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ pub trait BidirectionalIterator: Iterator {
699699
fn prev(&mut self) -> Option<Self::Item>;
700700
}
701701

702-
impl<'a, T> BidirectionalIterator for GridIterator<'a, T> {
702+
impl<T> BidirectionalIterator for GridIterator<'_, T> {
703703
fn prev(&mut self) -> Option<Self::Item> {
704704
let topmost_line = self.grid.topmost_line();
705705
let last_column = self.grid.last_column();

crates/alacritty_terminal/src/term/color.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl<'de> Deserialize<'de> for Rgb {
120120
b: u8,
121121
}
122122

123-
impl<'a> Visitor<'a> for RgbVisitor {
123+
impl Visitor<'_> for RgbVisitor {
124124
type Value = Rgb;
125125

126126
fn expecting(&self, f: &mut Formatter<'_>) -> fmt::Result {
@@ -216,7 +216,7 @@ impl<'de> Deserialize<'de> for CellRgb {
216216
const EXPECTING: &str = "CellForeground, CellBackground, or hex color like #ff00ff";
217217

218218
struct CellRgbVisitor;
219-
impl<'a> Visitor<'a> for CellRgbVisitor {
219+
impl Visitor<'_> for CellRgbVisitor {
220220
type Value = CellRgb;
221221

222222
fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

crates/amzn-codewhisperer-client/src/config.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,6 @@ impl Builder {
630630
/// .build();
631631
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
632632
/// ```
633-
634633
pub fn identity_cache(mut self, identity_cache: impl crate::config::ResolveCachedIdentity + 'static) -> Self {
635634
self.set_identity_cache(identity_cache);
636635
self
@@ -678,7 +677,6 @@ impl Builder {
678677
/// .build();
679678
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
680679
/// ```
681-
682680
pub fn set_identity_cache(
683681
&mut self,
684682
identity_cache: impl crate::config::ResolveCachedIdentity + 'static,
@@ -1146,7 +1144,6 @@ impl Builder {
11461144
/// .build();
11471145
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
11481146
/// ```
1149-
11501147
pub fn behavior_version(mut self, behavior_version: crate::config::BehaviorVersion) -> Self {
11511148
self.set_behavior_version(Some(behavior_version));
11521149
self
@@ -1184,7 +1181,6 @@ impl Builder {
11841181
/// .build();
11851182
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
11861183
/// ```
1187-
11881184
pub fn set_behavior_version(&mut self, behavior_version: Option<crate::config::BehaviorVersion>) -> &mut Self {
11891185
self.behavior_version = behavior_version;
11901186
self
@@ -1310,7 +1306,7 @@ impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for Service
13101306
}
13111307
}
13121308

1313-
/// Cross-operation shared-state singletons
1309+
// Cross-operation shared-state singletons
13141310

13151311
/// A plugin that enables configuration for a single operation invocation
13161312
///

crates/amzn-codewhisperer-client/src/config/endpoint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub use ::aws_smithy_runtime_api::client::endpoint::{
55
};
66
pub use ::aws_smithy_types::endpoint::Endpoint;
77

8-
///
98
#[cfg(test)]
109
mod test {}
1110

crates/amzn-codewhisperer-streaming-client/src/config.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ impl Builder {
612612
/// .build();
613613
/// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config);
614614
/// ```
615-
616615
pub fn identity_cache(mut self, identity_cache: impl crate::config::ResolveCachedIdentity + 'static) -> Self {
617616
self.set_identity_cache(identity_cache);
618617
self
@@ -660,7 +659,6 @@ impl Builder {
660659
/// .build();
661660
/// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config);
662661
/// ```
663-
664662
pub fn set_identity_cache(
665663
&mut self,
666664
identity_cache: impl crate::config::ResolveCachedIdentity + 'static,
@@ -1128,7 +1126,6 @@ impl Builder {
11281126
/// .build();
11291127
/// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config);
11301128
/// ```
1131-
11321129
pub fn behavior_version(mut self, behavior_version: crate::config::BehaviorVersion) -> Self {
11331130
self.set_behavior_version(Some(behavior_version));
11341131
self
@@ -1166,7 +1163,6 @@ impl Builder {
11661163
/// .build();
11671164
/// let client = amzn_codewhisperer_streaming_client::Client::from_conf(config);
11681165
/// ```
1169-
11701166
pub fn set_behavior_version(&mut self, behavior_version: Option<crate::config::BehaviorVersion>) -> &mut Self {
11711167
self.behavior_version = behavior_version;
11721168
self
@@ -1287,7 +1283,7 @@ impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for Service
12871283
}
12881284
}
12891285

1290-
/// Cross-operation shared-state singletons
1286+
// Cross-operation shared-state singletons
12911287

12921288
/// A plugin that enables configuration for a single operation invocation
12931289
///

crates/amzn-codewhisperer-streaming-client/src/config/endpoint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub use ::aws_smithy_runtime_api::client::endpoint::{
55
};
66
pub use ::aws_smithy_types::endpoint::Endpoint;
77

8-
///
98
#[cfg(test)]
109
mod test {}
1110

crates/amzn-consolas-client/src/config.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ impl Builder {
635635
/// .build();
636636
/// let client = amzn_consolas_client::Client::from_conf(config);
637637
/// ```
638-
639638
pub fn identity_cache(mut self, identity_cache: impl crate::config::ResolveCachedIdentity + 'static) -> Self {
640639
self.set_identity_cache(identity_cache);
641640
self
@@ -683,7 +682,6 @@ impl Builder {
683682
/// .build();
684683
/// let client = amzn_consolas_client::Client::from_conf(config);
685684
/// ```
686-
687685
pub fn set_identity_cache(
688686
&mut self,
689687
identity_cache: impl crate::config::ResolveCachedIdentity + 'static,
@@ -1161,7 +1159,6 @@ impl Builder {
11611159
/// .build();
11621160
/// let client = amzn_consolas_client::Client::from_conf(config);
11631161
/// ```
1164-
11651162
pub fn behavior_version(mut self, behavior_version: crate::config::BehaviorVersion) -> Self {
11661163
self.set_behavior_version(Some(behavior_version));
11671164
self
@@ -1199,7 +1196,6 @@ impl Builder {
11991196
/// .build();
12001197
/// let client = amzn_consolas_client::Client::from_conf(config);
12011198
/// ```
1202-
12031199
pub fn set_behavior_version(&mut self, behavior_version: Option<crate::config::BehaviorVersion>) -> &mut Self {
12041200
self.behavior_version = behavior_version;
12051201
self
@@ -1330,7 +1326,7 @@ impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for Service
13301326
}
13311327
}
13321328

1333-
/// Cross-operation shared-state singletons
1329+
// Cross-operation shared-state singletons
13341330

13351331
/// A plugin that enables configuration for a single operation invocation
13361332
///

crates/amzn-consolas-client/src/config/endpoint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub use ::aws_smithy_runtime_api::client::endpoint::{
55
};
66
pub use ::aws_smithy_types::endpoint::Endpoint;
77

8-
///
98
#[cfg(test)]
109
mod test {}
1110

0 commit comments

Comments
 (0)