summaryrefslogtreecommitdiff
path: root/src/lua/evalsto.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 14:05:30 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-08-02 14:05:30 +0200
commit555a45a9f2b68a48b098099804ce795e3d5a350b (patch)
treec13dbfc5e380f9c2b21fa87ce889a6379fef44b2 /src/lua/evalsto.rs
parent04a5a938994ddb95cfaa9a74b180e457d3a2b5d0 (diff)
sheetview add background theme parameter
Diffstat (limited to 'src/lua/evalsto.rs')
-rw-r--r--src/lua/evalsto.rs10
1 files changed, 5 insertions, 5 deletions
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<T, A> EvalTo<T, A> {
pub fn get<'lua>(&'lua self, args: A, lua: &'lua Lua) -> Result<T>
where
T: FromLua<'lua> + Clone,
- A: IntoLua<'lua>,
+ A: IntoLuaMulti<'lua>,
{
match self {
EvalTo::Function(value, _) => {
@@ -33,7 +33,7 @@ impl<T, A> EvalTo<T, A> {
impl<'lua, T, A> FromLua<'lua> for EvalTo<T, A>
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<T, A>
where
T: FromLua<'lua> + Clone + IntoLua<'lua>,
- A: IntoLua<'lua>,
+ A: IntoLuaMulti<'lua>,
{
fn into_lua(self, lua: &'lua mlua::prelude::Lua) -> Result<Value<'lua>> {
match self {
@@ -74,7 +74,7 @@ where
impl<T, A> fmt::Debug for EvalTo<T, A>
where
- T: fmt::Debug
+ T: fmt::Debug,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {