Skip to content

Commit 47e360e

Browse files
authored
chore: update Rust to nightly-2026-10-15 (#227)
1 parent 0ef4872 commit 47e360e

9 files changed

Lines changed: 31 additions & 28 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install Rust toolchain
3737
uses: dtolnay/rust-toolchain@nightly
3838
with:
39-
toolchain: nightly-2025-10-20
39+
toolchain: nightly-2026-10-15
4040
components: rustfmt, clippy, llvm-tools-preview, rustc-dev
4141
- name: Cache on ${{ github.ref_name }}
4242
uses: Swatinem/rust-cache@v2
@@ -46,8 +46,8 @@ jobs:
4646
run: cargo fmt --check
4747
- name: Clippy
4848
run: |
49-
cargo +nightly-2025-10-20 clippy --all-targets -- -D warnings
50-
cargo +nightly-2025-10-20 clippy --all-targets --all-features -- -D warnings
49+
cargo +nightly-2026-10-15 clippy --all-targets -- -D warnings
50+
cargo +nightly-2026-10-15 clippy --all-targets --all-features -- -D warnings
5151
5252
test:
5353
name: Build & Test
@@ -129,7 +129,7 @@ jobs:
129129
- name: Install the rust toolchain
130130
uses: dtolnay/rust-toolchain@master
131131
with:
132-
toolchain: "nightly-2025-10-20"
132+
toolchain: "nightly-2026-10-15"
133133
targets: ${{ matrix.rust-target }}
134134

135135
- name: Install cross-compilation dependencies

‎crates/cli/src/lint.rs‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,17 +2206,17 @@ pub fn lint_file_content_with_config(
22062206
});
22072207
}
22082208
}
2209-
Statement::DebuggerStatement(debugger_stmt) => {
2210-
if is_rule_enabled("no-debugger", lint_config) {
2211-
let span = SourceSpan::new(
2212-
(debugger_stmt.span.start as usize).into(),
2213-
debugger_stmt.span.size() as usize,
2214-
);
2215-
lint_errors.push(LintError::NoDebugger {
2216-
span,
2217-
source_code: named_source.clone(),
2218-
});
2219-
}
2209+
Statement::DebuggerStatement(debugger_stmt)
2210+
if is_rule_enabled("no-debugger", lint_config) =>
2211+
{
2212+
let span = SourceSpan::new(
2213+
(debugger_stmt.span.start as usize).into(),
2214+
debugger_stmt.span.size() as usize,
2215+
);
2216+
lint_errors.push(LintError::NoDebugger {
2217+
span,
2218+
source_code: named_source.clone(),
2219+
});
22202220
}
22212221
_ => {}
22222222
}

‎crates/cli/src/lsp/backend.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,7 @@ impl AndromedaBackend {
10671067
}
10681068

10691069
/// Format document using dprint
1070+
#[allow(clippy::result_large_err)]
10701071
async fn format_document(
10711072
&self,
10721073
content: &str,

‎crates/runtime/src/ext/broadcast_channel/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl BroadcastChannelExt {
7878

7979
// Remove this RID from all channels
8080
let mut channels = BROADCAST_CHANNELS.write().unwrap();
81-
for (_name, handles) in channels.iter_mut() {
81+
for handles in channels.values_mut() {
8282
handles.retain(|handle| handle.rid != rid);
8383
}
8484

‎crates/runtime/src/ext/console/mod.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,8 @@ impl ConsoleExt {
617617
ansi.push_str("\x1b[3m");
618618
}
619619
}
620-
"text-decoration" => {
621-
if value.contains("underline") {
622-
ansi.push_str("\x1b[4m");
623-
}
620+
"text-decoration" if value.contains("underline") => {
621+
ansi.push_str("\x1b[4m");
624622
}
625623
_ => {} // Ignore unsupported properties
626624
}

‎crates/runtime/src/ext/web/mod.rs‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,10 @@ impl WebExt {
295295
}
296296
} else {
297297
let utf16_pairs: Vec<u16> = bytes
298-
.chunks_exact(2)
299-
.map(|chunk| u16::from_le_bytes([chunk[0], chunk[1]]))
298+
.as_chunks::<2>()
299+
.0
300+
.iter()
301+
.map(|chunk| u16::from_le_bytes(*chunk))
300302
.collect();
301303

302304
if fatal {
@@ -332,8 +334,10 @@ impl WebExt {
332334
}
333335
} else {
334336
let utf16_pairs: Vec<u16> = bytes
335-
.chunks_exact(2)
336-
.map(|chunk| u16::from_be_bytes([chunk[0], chunk[1]]))
337+
.as_chunks::<2>()
338+
.0
339+
.iter()
340+
.map(|chunk| u16::from_be_bytes(*chunk))
337341
.collect();
338342

339343
if fatal {

‎crates/runtime/src/ext/web_locks.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl WebLocksManager {
393393
let mut held = Vec::new();
394394
let mut pending = Vec::new();
395395

396-
for (_name, state) in locks.iter() {
396+
for state in locks.values() {
397397
// Add active locks to held
398398
for active_lock in &state.active_locks {
399399
held.push(format!(

‎crates/runtime/src/ext/window/state.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ pub struct WindowingState {
243243
impl WindowingState {
244244
/// Lazily initialize the shared GPU context.
245245
pub fn ensure_gpu(&mut self) -> Result<&WindowingGpu, String> {
246-
if self.gpu.is_some() {
247-
return Ok(self.gpu.as_ref().unwrap());
246+
if let Some(gpu) = self.gpu.as_ref() {
247+
return Ok(gpu);
248248
}
249249
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor {
250250
backends: wgpu::Backends::all(),

‎rust-toolchain.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2025-10-20"
2+
channel = "nightly-2026-10-15"
33
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)