File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -175,16 +175,16 @@ pub(super) fn validate_embed_string_type(
175175 }
176176
177177 // Check if it's a scope variable
178- if let Some ( var_info) = scope. get ( identifier_name) {
179- if var_info. ty != Type :: Scalar ( FieldType :: String ) {
180- generate_error ! (
181- ctx ,
182- original_query ,
183- loc ,
184- E660 ,
185- & var_info . ty . to_string ( )
186- ) ;
187- }
178+ if let Some ( var_info) = scope. get ( identifier_name)
179+ && var_info. ty != Type :: Scalar ( FieldType :: String )
180+ {
181+ generate_error ! (
182+ ctx ,
183+ original_query ,
184+ loc ,
185+ E660 ,
186+ & var_info . ty . to_string ( )
187+ ) ;
188188 }
189189}
190190
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl Date {
7474 }
7575 }
7676
77- pub fn from_str ( value : String ) -> Result < Self , DateError > {
77+ pub fn parse_from_string ( value : String ) -> Result < Self , DateError > {
7878 let date = match value. parse :: < DateTime < Utc > > ( ) {
7979 Ok ( date) => date. with_timezone ( & Utc ) ,
8080 Err ( e) => match value. parse :: < NaiveDate > ( ) {
You can’t perform that action at this time.
0 commit comments