Skip to content
Open
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
4 changes: 3 additions & 1 deletion src/bun_core/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ impl RawModeGuard {
impl Drop for RawModeGuard {
#[inline]
fn drop(&mut self) {
let _ = self.state.set_mode(self.fd, Mode::Normal, SetAttrWhen::Drain);
let _ = self
.state
.set_mode(self.fd, Mode::Normal, SetAttrWhen::Drain);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/bun_core/windows_sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn GetStdHandle(std_handle: DWORD) -> Option<HANDLE> {
// `crate::windows_sys::*` path used by callers.
// ──────────────────────────────────────────────────────────────────────────
pub use bun_windows_sys::{
CURDIR, Curdir, PEB, PebView, ProcessParameters, RTL_USER_PROCESS_PARAMETERS, TEB, peb, teb,
CURDIR, PEB, ProcessParameters, RTL_USER_PROCESS_PARAMETERS, TEB, peb, teb,
};

// SAFETY: nested `i16`/`u16` POD; all-zero is the documented pre-call state
Expand Down
5 changes: 1 addition & 4 deletions src/bundler/bundle_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4378,7 +4378,6 @@ pub mod bv2_impl {
fd,
&load.path,
bun_wyhash::hash(load.path.as_ref()) as u32,
bun_watcher::Loader(code.loader as u8),
bun_sys::Fd::INVALID,
None,
),
Expand Down Expand Up @@ -6835,12 +6834,11 @@ pub mod bv2_impl {
parse_task::ResultValue::Err(data) => data.source_index.get(),
parse_task::ResultValue::Success(val) => val.source.index.0,
};
// borrowck — read source path/loader before
// borrowck — read the source path before
// `should_add_watcher(&self)` so the column borrow is released.
let source_path = this.graph.input_files.items_source()[source_index as usize]
.path
.text;
let loader = this.graph.input_files.items_loader()[source_index as usize];
if this.should_add_watcher(source_path) {
// const generic `CLONE_FILE_PATH = isWindows`
// matches `cfg!(windows)` at compile time.
Expand All @@ -6851,7 +6849,6 @@ pub mod bv2_impl {
parse_result.watcher_data.fd,
source_path,
bun_wyhash::hash(source_path) as u32,
bun_watcher::Loader(loader as u8),
parse_result.watcher_data.dir_fd,
None,
);
Expand Down
1 change: 0 additions & 1 deletion src/codegen/generate-js2native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const rustIdentifierPaths: Record<string, string> = {
"collections/linear_fifo.rs": "collections/linear_fifo.rs",
"crash_handler.rs": "crash_handler/crash_handler.rs",
"css_internals.rs": "css_jsc/css_internals.rs",
"dependency.rs": "install/dependency.rs",
"escapeRegExp.rs": "string/escapeRegExp.rs",
"event_loop.rs": "jsc/event_loop.rs",
"ffi.rs": "runtime/ffi/ffi.rs",
Expand Down
Loading
Loading