@@ -197,7 +197,7 @@ impl Parser {
197197 {
198198 self . in_function = true ; // for funtions inside functions see loop below for more info
199199 if let Some ( t) = self . parse_from_token ( ) {
200- function. push ( t)
200+ function. push ( t) ;
201201 }
202202 }
203203 self . advance ( "parse_from_token after function body looking for function end" ) ;
@@ -282,8 +282,7 @@ impl Parser {
282282 error (
283283 self . tokens [ 1 ] . line ,
284284 format ! (
285- "identifier expected, after \" list\" found TokenType::{:?}" ,
286- tokentype
285+ "identifier expected, after \" list\" found TokenType::{tokentype:?}"
287286 )
288287 . as_str ( ) ,
289288 ) ;
@@ -321,8 +320,7 @@ impl Parser {
321320 error (
322321 self . token . line ,
323322 format ! (
324- "identifier expected after \" create\" , found TokenType::{:?}" ,
325- tokentype
323+ "identifier expected after \" create\" , found TokenType::{tokentype:?}"
326324 )
327325 . as_str ( ) ,
328326 ) ;
@@ -384,8 +382,7 @@ impl Parser {
384382 error (
385383 self . token . line ,
386384 format ! (
387- "boolean expected, in if statement condition found TokenType::{:?}" ,
388- tokentype
385+ "boolean expected, in if statement condition found TokenType::{tokentype:?}"
389386 )
390387 . as_str ( ) ,
391388 ) ;
@@ -619,8 +616,7 @@ impl Parser {
619616 error (
620617 self . token . line ,
621618 format ! (
622- "identifier expected, after \" create\" found TokenType::{:?}" ,
623- tokentype
619+ "identifier expected, after \" create\" found TokenType::{tokentype:?}"
624620 )
625621 . as_str ( ) ,
626622 ) ;
0 commit comments