Skip to content

Commit 50d7c85

Browse files
mkvolkovpolarathene
authored andcommitted
feature title corrected
1 parent c1feb1d commit 50d7c85

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/file/format/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mod ron;
2727
#[cfg(feature = "json5")]
2828
mod json5;
2929

30-
#[cfg(feature = "ura")]
30+
#[cfg(feature = "gura")]
3131
mod gura;
3232

3333
/// File formats provided by the library.
@@ -59,8 +59,8 @@ pub enum FileFormat {
5959
#[cfg(feature = "json5")]
6060
Json5,
6161

62-
/// GURA (parsed with ura)
63-
#[cfg(feature = "ura")]
62+
/// GURA (parsed with gura)
63+
#[cfg(feature = "gura")]
6464
Gura,
6565
}
6666

@@ -88,7 +88,7 @@ lazy_static! {
8888
#[cfg(feature = "json5")]
8989
formats.insert(FileFormat::Json5, vec!["json5"]);
9090

91-
#[cfg(feature = "ura")]
91+
#[cfg(feature = "gura")]
9292
formats.insert(FileFormat::Gura, vec!["ura"]);
9393

9494
formats
@@ -127,7 +127,7 @@ impl FileFormat {
127127
#[cfg(feature = "json5")]
128128
FileFormat::Json5 => json5::parse(uri, text),
129129

130-
#[cfg(feature = "ura")]
130+
#[cfg(feature = "gura")]
131131
FileFormat::Gura => gura::parse(uri, text),
132132

133133
#[cfg(all(
@@ -137,6 +137,7 @@ impl FileFormat {
137137
not(feature = "ini"),
138138
not(feature = "ron"),
139139
not(feature = "json5"),
140+
not(feature = "gura"),
140141
))]
141142
_ => unreachable!("No features are enabled, this library won't work without features"),
142143
}

tests/file_gura.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg(feature = "json")]
1+
#![cfg(feature = "gura")]
22

33
use serde_derive::Deserialize;
44

0 commit comments

Comments
 (0)