aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-11-01 08:39:13 +0100
committerTeddy Wing2018-11-01 08:39:13 +0100
commitd8c2fa73d72ea1efb5a69f39c208de6edf947737 (patch)
tree25bafbbb3292e967f7fd6d649c3d5e70829cbd71 /src/parser.rs
parent0b3d81c50925d8f0d7e1ea642ce41d3672a74809 (diff)
downloaddome-key-map-d8c2fa73d72ea1efb5a69f39c208de6edf947737.tar.bz2
parser: Reuse `SourcePosition` import
This type is already imported. No need to use the full path.
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs4
1 files 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 <down> fails";
);
assert_eq!(result, Err(easy::Errors {
- position: ::combine::stream::state::SourcePosition {
+ position: SourcePosition {
line: 2,
column: 17,
},
@@ -1374,7 +1374,7 @@ cmd <play> /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,
},