Skip to content

Commit

Permalink
fix compile error no backend feature
Browse files Browse the repository at this point in the history
  • Loading branch information
lenscas committed Dec 15, 2023
1 parent 60aa080 commit 2a4971b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/type_representation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ use rlua::{Table, Value};
#[cfg(feature = "mlua")]
use mlua::{Table, Value};

#[cfg(any(feature = "mlua", feature = "rlua"))]
impl<'lua> ToTypename for Table<'lua> {
fn to_typename() -> Type {
Type::Map(crate::MapRepresentation {
Expand All @@ -311,6 +312,7 @@ use mlua::Function;
#[cfg(feature = "rlua")]
use rlua::Function;

#[cfg(any(feature = "mlua", feature = "rlua"))]
impl<'lua> ToTypename for Function<'lua> {
fn to_typename() -> Type {
Type::Function(crate::FunctionRepresentation {
Expand Down

0 comments on commit 2a4971b

Please sign in to comment.