From 6467b52761ea497dbf0dcc99be633e87d458d130 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 5 Jun 2022 19:35:18 +0800 Subject: [PATCH] Fix no_function. --- src/ast/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ast/mod.rs b/src/ast/mod.rs index 4a22de90..32a84497 100644 --- a/src/ast/mod.rs +++ b/src/ast/mod.rs @@ -27,5 +27,7 @@ pub use stmt::{ #[cfg(not(feature = "no_float"))] pub use expr::FloatWrapper; +/// _(internals)_ Placeholder for a script-defined function. +/// Exported under the `internals` feature only. #[cfg(feature = "no_function")] -pub struct ScriptFnDef; +pub type ScriptFnDef = ();