@@ -5,11 +5,11 @@ use combine::combinator::{many, many1, eof, optional, position, choice};
5
5
use combine:: combinator:: { sep_by1} ;
6
6
use failure:: Fail ;
7
7
8
- use tokenizer:: { Kind as T , Token , TokenStream } ;
9
- use helpers:: { punct, ident, kind, name} ;
10
- use common:: { directives, string, default_value, parse_type, Text } ;
11
- use schema:: error:: { ParseError } ;
12
- use schema:: ast:: * ;
8
+ use crate :: tokenizer:: { Kind as T , Token , TokenStream } ;
9
+ use crate :: helpers:: { punct, ident, kind, name} ;
10
+ use crate :: common:: { directives, string, default_value, parse_type, Text } ;
11
+ use crate :: schema:: error:: { ParseError } ;
12
+ use crate :: schema:: ast:: * ;
13
13
14
14
15
15
pub fn schema < ' a , S > ( input : & mut TokenStream < ' a > )
@@ -510,9 +510,9 @@ pub fn described_definition<'a, T>(input: &mut TokenStream<'a>)
510
510
// that means parser will need to backtrace, and that in turn
511
511
// means that error reporting is bad (along with performance)
512
512
. map ( |( descr, mut def) | {
513
- use schema:: ast:: TypeDefinition :: * ;
514
- use schema:: ast:: Definition :: * ;
515
- use schema:: ast:: Definition :: { TypeDefinition as T } ;
513
+ use crate :: schema:: ast:: TypeDefinition :: * ;
514
+ use crate :: schema:: ast:: Definition :: * ;
515
+ use crate :: schema:: ast:: Definition :: { TypeDefinition as T } ;
516
516
match def {
517
517
T ( Scalar ( ref mut s) ) => s. description = descr,
518
518
T ( Object ( ref mut o) ) => o. description = descr,
@@ -574,8 +574,8 @@ pub fn parse_schema<'a, T>(s: &'a str) -> Result<Document<'a, T>, ParseError>
574
574
575
575
#[ cfg( test) ]
576
576
mod test {
577
- use position:: Pos ;
578
- use schema:: grammar:: * ;
577
+ use crate :: position:: Pos ;
578
+ use crate :: schema:: grammar:: * ;
579
579
use super :: parse_schema;
580
580
581
581
fn ast ( s : & str ) -> Document < String > {
0 commit comments