diff --git a/README.md b/README.md index b4fef3b..24dd8e5 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,12 @@ An encoder/decoder for Konami's binary XML format, used in many of their games. +Requires Rust 1.34 or newer! + ### Setup -- Setup Rust Nightly through `rustup` or your own preferred method of acquiring the nightly version of Rust +- Setup Rust through `rustup` or your own preferred method of acquiring Rust - For using `kbinxml-rs` as a library, add it as a dependency in your `Cargo.toml` file -- For using `kbinxml-rs` as a standalone application, install `kbinxml-rs` using `cargo install kbinxml` (Note: This will not work at the moment as `kbinxml-rs` has not yet been published to [crates.io](https://crates.io)) +- For using `kbinxml-rs` as a standalone application, install `kbinxml-rs` using `cargo install kbinxml --features=build_binary` (Note: This will not work at the moment as `kbinxml-rs` has not yet been published to [crates.io](https://crates.io)) To be written. diff --git a/src/text_reader.rs b/src/text_reader.rs index df39ad0..595b3a3 100644 --- a/src/text_reader.rs +++ b/src/text_reader.rs @@ -155,10 +155,9 @@ impl<'a> TextXmlReader<'a> { count = num_count as usize; } else if attr.key == b"__size" { - let value = - str::from_utf8(&*value)? - .parse::() - .context(ParseBinarySize)?; + let value = str::from_utf8(&*value)? + .parse::() + .context(ParseBinarySize)?; size = Some(value); } else {