fix: remove unneeded with_table builder method for TableBuilder

This commit is contained in:
Erica Marigold 2023-10-15 03:46:38 -07:00
parent 421d9f08b3
commit 8d5854af3a
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -66,15 +66,6 @@ impl<'lua> TableBuilder<'lua> {
self.with_value(key, LuaValue::Function(f))
}
pub fn with_table<K>(self, key: K, table: LuaTable<'lua>) -> LuaResult<Self>
where
K: IntoLua<'lua>,
{
self.tab.raw_set(key, table)?;
Ok(self)
}
pub fn with_metatable(self, table: LuaTable) -> LuaResult<Self> {
self.tab.set_metatable(Some(table));
Ok(self)