This commit is contained in:
Alex Orlenko
2026-06-06 14:28:17 +01:00
parent 0b365e92a9
commit 743325f7d6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ fn gen_field_getter(
lua_attr: &LuaAttr,
info: &MethodInfo,
) -> TokenStream2 {
let lua_name = lua_attr.name(&fn_name);
let lua_name = lua_attr.name(fn_name);
let call_args = gen_call_args(info);
if lua_attr.infallible {
+1 -1
View File
@@ -290,7 +290,7 @@ impl fmt::Display for Error {
// Try to find local traceback within the full traceback
if let Some(pos) = full_traceback.find(traceback) {
write!(fmt, "{}", &full_traceback[..pos])?;
writeln!(fmt, ">{}", &full_traceback[pos..].trim_end())?;
writeln!(fmt, ">{}", full_traceback[pos..].trim_end())?;
} else {
writeln!(fmt, "{}", full_traceback.trim_end())?;
}
+1 -1
View File
@@ -881,7 +881,7 @@ impl Lua {
#[cfg(feature = "luau")]
{
let proc = Self::userthread_proc as _;
(*ffi::lua_callbacks(lua.main_state())).userthread = triggers.on_create.then(|| proc);
(*ffi::lua_callbacks(lua.main_state())).userthread = triggers.on_create.then_some(proc);
}
}
}