From c3e27cbf5c7ad9216179dd651a65db9f8ba351d7 Mon Sep 17 00:00:00 2001
From: Georgy Moshkin <gmoshkin@picodata.io>
Date: Wed, 11 Sep 2024 19:03:10 +0300
Subject: [PATCH] chore: fix compiler warnings

---
 src/luamod.rs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/luamod.rs b/src/luamod.rs
index 1b71bcae53..399645734f 100644
--- a/src/luamod.rs
+++ b/src/luamod.rs
@@ -12,7 +12,6 @@ use crate::schema::{self, ADMIN_ID};
 use crate::sync;
 #[allow(unused_imports)]
 use crate::tlog;
-use crate::traft::error::Error;
 use crate::traft::op::{self, Op};
 use crate::traft::{self, node, RaftIndex, RaftTerm};
 use crate::util::duration_from_secs_f64_clamped;
@@ -37,14 +36,14 @@ where
 {
     let luamod: tlua::LuaTable<_> = l.get("pico").unwrap();
     luamod.set(name, value);
-    let help_table: tlua::LuaTable<_> = luamod.get_or_create_metatable();
+    let help_table: tlua::LuaTable<_> = luamod.metatable();
     help_table.set(name, help);
 }
 
 #[inline(always)]
 fn luamod_set_help_only(l: &LuaThread, name: &str, help: &str) {
     let luamod: tlua::LuaTable<_> = l.get("pico").unwrap();
-    let help_table: tlua::LuaTable<_> = luamod.get_or_create_metatable();
+    let help_table: tlua::LuaTable<_> = luamod.metatable();
     help_table.set(name, help);
 }
 
-- 
GitLab