summaryrefslogtreecommitdiffstats
path: root/src/path
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-03-31 15:09:38 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-04-09 09:47:11 +0200
commit00db885e88bd3957872278d41f991046435d335c (patch)
treec63ee3f78681199bb23ce92197f010ee2618da79 /src/path
parent938fd42200a2fc3e66c8f90b8d57b52c333d534d (diff)
Ensure order in the galaxy... I mean the imports
This patch sorts the imports: 1. std imports 2. external crate imports 3. own module imports In three blocks, each alphabetically (with is also enforced by rustfmt). As well as it prefixes the imports of own modules with crate:: This is just a quality-of-life patch :-) Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/path')
-rw-r--r--src/path/mod.rs5
-rw-r--r--src/path/parser.rs6
2 files changed, 7 insertions, 4 deletions
diff --git a/src/path/mod.rs b/src/path/mod.rs
index c6de2a7..d58a6f2 100644
--- a/src/path/mod.rs
+++ b/src/path/mod.rs
@@ -1,7 +1,8 @@
-use error::*;
use std::collections::HashMap;
use std::str::FromStr;
-use value::{Value, ValueKind};
+
+use crate::error::*;
+use crate::value::{Value, ValueKind};
mod parser;
diff --git a/src/path/parser.rs b/src/path/parser.rs
index 6c873cb..3f7bc52 100644
--- a/src/path/parser.rs
+++ b/src/path/parser.rs
@@ -1,4 +1,5 @@
-use super::Expression;
+use std::str::FromStr;
+
use nom::{
branch::alt,
bytes::complete::{is_a, tag},
@@ -8,7 +9,8 @@ use nom::{
sequence::{delimited, pair, preceded},
Err, IResult,
};
-use std::str::FromStr;
+
+use crate::path::Expression;
fn raw_ident(i: &str) -> IResult<&str, String> {
map(