Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/fspy_shared_unix/src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn get_interp(executable: &[u8]) -> nix::Result<Option<&BStr>> {
return Err(nix::Error::ENOEXEC);
};

let interp = CStr::from_bytes_until_nul(interp).map(CStr::to_bytes).unwrap_or(interp);
let interp = CStr::from_bytes_until_nul(interp).map_or(interp, CStr::to_bytes);
Ok(Some(BStr::new(interp)))
}

Expand Down
2 changes: 1 addition & 1 deletion crates/vite_select/src/fuzzy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn fuzzy_match(query: &str, items: &[&str]) -> Vec<usize> {
})
.collect();

scored.sort_by(|a, b| b.1.cmp(&a.1));
scored.sort_by_key(|b| std::cmp::Reverse(b.1));
scored.into_iter().map(|(idx, _)| idx).collect()
}

Expand Down
6 changes: 2 additions & 4 deletions crates/vite_tui/src/components/tasks_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ impl Component for TasksList {
match action {
Action::Up => self.up(),
Action::Down => self.down(),
Action::SelectTask(index) => {
if index < self.tasks.len() {
self.select(index);
}
Action::SelectTask(index) if index < self.tasks.len() => {
self.select(index);
}
_ => {}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/vite_workspace/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct PackageJson {

impl std::fmt::Debug for PackageJson {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
if std::env::var("VITE_DEBUG_VERBOSE").map(|v| v != "0" && v != "false").unwrap_or(false) {
if std::env::var("VITE_DEBUG_VERBOSE").is_ok_and(|v| v != "0" && v != "false") {
write!(
f,
"PackageJson {{ name: {:?}, scripts: {:?}, dependencies: {:?}, dev_dependencies: {:?}, peer_dependencies: {:?} }}",
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Needed nightly features:
# - cargo `Z-bindeps` to build and embed preload shared libraries as dependencies of fspy
# - `windows_process_extensions_main_thread_handle` to get the main thread handle for Detours injection
channel = "nightly-2025-12-11"
channel = "nightly-2026-03-05"
profile = "default"
Loading