Skip to main content

luaur_code_gen/functions/
append.rs

1use core::fmt::Write;
2
3pub(crate) fn append(result: &mut alloc::string::String, args: core::fmt::Arguments<'_>) {
4    // write! returns fmt::Result; truncation is acceptable (the C++ version
5    // also truncated to a 256-byte buffer).
6    let _ = result.write_fmt(args);
7}