@@ -27,7 +27,7 @@ mod ron;
27
27
#[ cfg( feature = "json5" ) ]
28
28
mod json5;
29
29
30
- #[ cfg( feature = "ura " ) ]
30
+ #[ cfg( feature = "gura " ) ]
31
31
mod gura;
32
32
33
33
/// File formats provided by the library.
@@ -59,8 +59,8 @@ pub enum FileFormat {
59
59
#[ cfg( feature = "json5" ) ]
60
60
Json5 ,
61
61
62
- /// GURA (parsed with ura )
63
- #[ cfg( feature = "ura " ) ]
62
+ /// GURA (parsed with gura )
63
+ #[ cfg( feature = "gura " ) ]
64
64
Gura ,
65
65
}
66
66
@@ -88,7 +88,7 @@ lazy_static! {
88
88
#[ cfg( feature = "json5" ) ]
89
89
formats. insert( FileFormat :: Json5 , vec![ "json5" ] ) ;
90
90
91
- #[ cfg( feature = "ura " ) ]
91
+ #[ cfg( feature = "gura " ) ]
92
92
formats. insert( FileFormat :: Gura , vec![ "ura" ] ) ;
93
93
94
94
formats
@@ -127,7 +127,7 @@ impl FileFormat {
127
127
#[ cfg( feature = "json5" ) ]
128
128
FileFormat :: Json5 => json5:: parse ( uri, text) ,
129
129
130
- #[ cfg( feature = "ura " ) ]
130
+ #[ cfg( feature = "gura " ) ]
131
131
FileFormat :: Gura => gura:: parse ( uri, text) ,
132
132
133
133
#[ cfg( all(
@@ -137,6 +137,7 @@ impl FileFormat {
137
137
not( feature = "ini" ) ,
138
138
not( feature = "ron" ) ,
139
139
not( feature = "json5" ) ,
140
+ not( feature = "gura" ) ,
140
141
) ) ]
141
142
_ => unreachable ! ( "No features are enabled, this library won't work without features" ) ,
142
143
}
0 commit comments