@@ -13,7 +13,8 @@ use std::{
1313 time:: Duration ,
1414} ;
1515use tmc_langs_framework:: {
16- nom:: { bytes, character, combinator, error:: VerboseError , sequence, IResult } ,
16+ nom:: { bytes, character, combinator, sequence, IResult , Parser } ,
17+ nom_language:: error:: VerboseError ,
1718 ExerciseDesc , Language , LanguagePlugin , RunResult , RunStatus , StyleValidationError ,
1819 StyleValidationResult , StyleValidationStrategy , TestDesc , TestResult , TmcCommand ,
1920} ;
@@ -267,19 +268,19 @@ pub(crate) trait JavaPlugin: LanguagePlugin {
267268 fn java_points_parser ( i : & str ) -> IResult < & str , Vec < & str > , VerboseError < & str > > {
268269 combinator:: map (
269270 sequence:: delimited (
270- sequence :: tuple ( (
271+ (
271272 character:: complete:: char ( '@' ) ,
272273 character:: complete:: multispace0,
273274 bytes:: complete:: tag_no_case ( "points" ) ,
274275 character:: complete:: multispace0,
275276 character:: complete:: char ( '(' ) ,
276277 character:: complete:: multispace0,
277- ) ) ,
278+ ) ,
278279 parse_util:: comma_separated_strings,
279- sequence :: tuple ( (
280+ (
280281 character:: complete:: multispace0,
281282 character:: complete:: char ( ')' ) ,
282- ) ) ,
283+ ) ,
283284 ) ,
284285 // splits each point by whitespace
285286 |points| {
@@ -288,7 +289,8 @@ pub(crate) trait JavaPlugin: LanguagePlugin {
288289 . flat_map ( |p| p. split_whitespace ( ) )
289290 . collect ( )
290291 } ,
291- ) ( i)
292+ )
293+ . parse ( i)
292294 }
293295}
294296
@@ -359,7 +361,7 @@ mod test {
359361 use super :: * ;
360362 use crate :: SEPARATOR ;
361363 use std:: io:: { Read , Seek } ;
362- use tmc_langs_framework:: { nom , Archive , TmcError } ;
364+ use tmc_langs_framework:: { Archive , TmcError } ;
363365
364366 fn init ( ) {
365367 use log:: * ;
@@ -442,7 +444,7 @@ mod test {
442444 unimplemented ! ( )
443445 }
444446
445- fn points_parser ( i : & str ) -> IResult < & str , Vec < & str > , nom :: error :: VerboseError < & str > > {
447+ fn points_parser ( i : & str ) -> IResult < & str , Vec < & str > , VerboseError < & str > > {
446448 Self :: java_points_parser ( i)
447449 }
448450 }
0 commit comments