Skip to content

Commit d1df93c

Browse files
style: fix formatting in native_runtime
Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>
1 parent 2332bca commit d1df93c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎.jules/bolt.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@
5050
## 2026-09-26 - Native Runtime Stringification Optimization
5151
**Learning:** In the native runtime C FFI, generating strings for nested TsValue structures heavily penalized performance by using format! and Vec::join, creating O(N) intermediate heap allocations.
5252
**Action:** Use a recursive builder pattern by passing a mutable &mut String buffer downward and utilizing std::fmt::Write to directly push onto the buffer without intermediate allocations.
53+
## 2024-05-24 - CI formatting issue
54+
**Learning:** cargo fmt needs to run locally before commits to avoid CI formatting errors.
55+
**Action:** Always include a cargo fmt --all step in execution plans before submitting.

‎runtime/native_runtime/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// runtime/native_runtime/src/lib.rs
22
#![allow(clippy::not_unsafe_ptr_arg_deref, clippy::missing_safety_doc)]
33

4-
use std::fmt::Write as FmtWrite;
54
use std::collections::HashMap;
65
use std::ffi::{CStr, CString};
6+
use std::fmt::Write as FmtWrite;
77
use std::io::{self, Write};
88
use std::os::raw::{c_char, c_void};
99

0 commit comments

Comments
 (0)