From d8c2fa73d72ea1efb5a69f39c208de6edf947737 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 1 Nov 2018 08:39:13 +0100 Subject: parser: Reuse `SourcePosition` import This type is already imported. No need to use the full path. --- src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index ea1bcc5..3866a44 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1137,7 +1137,7 @@ map fails"; ); assert_eq!(result, Err(easy::Errors { - position: ::combine::stream::state::SourcePosition { + position: SourcePosition { line: 2, column: 17, }, @@ -1374,7 +1374,7 @@ cmd /usr/bin/say hello let result = map_group().easy_parse(State::new(text)).map(|t| t.0); assert_eq!(result, Err(easy::Errors { - position: ::combine::stream::state::SourcePosition { + position: SourcePosition { line: 1, column: 1, }, -- cgit v1.2.3