From 555a45a9f2b68a48b098099804ce795e3d5a350b Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 2 Aug 2024 14:05:30 +0200 Subject: sheetview add background theme parameter --- src/lua/evalsto.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lua') diff --git a/src/lua/evalsto.rs b/src/lua/evalsto.rs index 6d8ab29..d72638e 100644 --- a/src/lua/evalsto.rs +++ b/src/lua/evalsto.rs @@ -1,6 +1,6 @@ use std::{fmt, marker::PhantomData, sync::Arc}; -use mlua::{FromLua, IntoLua, Lua, Result, Value}; +use mlua::{FromLua, IntoLua, IntoLuaMulti, Lua, Result, Value}; use crate::lua::ownedfunction::OwnedFunction; @@ -14,7 +14,7 @@ impl EvalTo { pub fn get<'lua>(&'lua self, args: A, lua: &'lua Lua) -> Result where T: FromLua<'lua> + Clone, - A: IntoLua<'lua>, + A: IntoLuaMulti<'lua>, { match self { EvalTo::Function(value, _) => { @@ -33,7 +33,7 @@ impl EvalTo { impl<'lua, T, A> FromLua<'lua> for EvalTo where T: FromLua<'lua> + Clone, - A: IntoLua<'lua>, + A: IntoLuaMulti<'lua>, { fn from_lua( value: mlua::prelude::LuaValue<'lua>, @@ -53,7 +53,7 @@ where impl<'lua, T, A> IntoLua<'lua> for EvalTo where T: FromLua<'lua> + Clone + IntoLua<'lua>, - A: IntoLua<'lua>, + A: IntoLuaMulti<'lua>, { fn into_lua(self, lua: &'lua mlua::prelude::Lua) -> Result> { match self { @@ -74,7 +74,7 @@ where impl fmt::Debug for EvalTo where - T: fmt::Debug + T: fmt::Debug, { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { -- cgit v1.2.3-70-g09d2