From 8e35f9847733df6210d67b4daf210935cd129e17 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 29 Oct 2022 14:27:30 +0800 Subject: [PATCH] Fix build. --- src/ast/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ast/ast.rs b/src/ast/ast.rs index aa18b3ac..9c186e67 100644 --- a/src/ast/ast.rs +++ b/src/ast/ast.rs @@ -77,7 +77,7 @@ impl AST { #[cfg(not(feature = "no_function"))] functions: impl Into>, ) -> Self { Self { - source: Identifier::new_const(), + source: None, #[cfg(feature = "metadata")] doc: crate::SmartString::new_const(), body: StmtBlock::new(statements, Position::NONE, Position::NONE), @@ -114,7 +114,7 @@ impl AST { pub(crate) fn new_with_source( statements: impl IntoIterator, #[cfg(not(feature = "no_function"))] functions: impl Into>, - source: impl Into, + source: impl Into, ) -> Self { let mut ast = Self::new( statements,