Skip to content

Commit d57119f

Browse files
Boshenclaude
andauthored
chore(rust): bump nightly to 1.94.0 (#246)
## Summary - Bump Rust nightly toolchain from `nightly-2025-12-11` (1.92.0) to `nightly-2026-03-05` (1.94.0) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e6c1da3 commit d57119f

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

crates/fspy_shared_unix/src/elf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn get_interp(executable: &[u8]) -> nix::Result<Option<&BStr>> {
3838
return Err(nix::Error::ENOEXEC);
3939
};
4040

41-
let interp = CStr::from_bytes_until_nul(interp).map(CStr::to_bytes).unwrap_or(interp);
41+
let interp = CStr::from_bytes_until_nul(interp).map_or(interp, CStr::to_bytes);
4242
Ok(Some(BStr::new(interp)))
4343
}
4444

crates/vite_select/src/fuzzy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn fuzzy_match(query: &str, items: &[&str]) -> Vec<usize> {
2626
})
2727
.collect();
2828

29-
scored.sort_by(|a, b| b.1.cmp(&a.1));
29+
scored.sort_by_key(|b| std::cmp::Reverse(b.1));
3030
scored.into_iter().map(|(idx, _)| idx).collect()
3131
}
3232

crates/vite_tui/src/components/tasks_list.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ impl Component for TasksList {
6262
match action {
6363
Action::Up => self.up(),
6464
Action::Down => self.down(),
65-
Action::SelectTask(index) => {
66-
if index < self.tasks.len() {
67-
self.select(index);
68-
}
65+
Action::SelectTask(index) if index < self.tasks.len() => {
66+
self.select(index);
6967
}
7068
_ => {}
7169
}

crates/vite_workspace/src/package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct PackageJson {
2727

2828
impl std::fmt::Debug for PackageJson {
2929
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
30-
if std::env::var("VITE_DEBUG_VERBOSE").map(|v| v != "0" && v != "false").unwrap_or(false) {
30+
if std::env::var("VITE_DEBUG_VERBOSE").is_ok_and(|v| v != "0" && v != "false") {
3131
write!(
3232
f,
3333
"PackageJson {{ name: {:?}, scripts: {:?}, dependencies: {:?}, dev_dependencies: {:?}, peer_dependencies: {:?} }}",

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# Needed nightly features:
33
# - cargo `Z-bindeps` to build and embed preload shared libraries as dependencies of fspy
44
# - `windows_process_extensions_main_thread_handle` to get the main thread handle for Detours injection
5-
channel = "nightly-2025-12-11"
5+
channel = "nightly-2026-03-05"
66
profile = "default"

0 commit comments

Comments
 (0)