Skip to content

Commit

Permalink
Release 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
J-F-Liu committed Jun 19, 2023
1 parent 257597f commit 85d7807
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 52 deletions.
46 changes: 0 additions & 46 deletions Cargo.lock

This file was deleted.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pom"
version = "3.2.0"
edition = "2018"
version = "3.3.0"
edition = "2021"
authors = ["Junfeng Liu <[email protected]>"]
homepage = "https://github.com/J-F-Liu/pom"
documentation = "https://docs.rs/crate/pom/"
Expand All @@ -15,8 +15,9 @@ keywords = ["parser", "parser-combinators", "parsing", "PEG"]
[badges]
travis-ci = { repository = "J-F-Liu/pom" }

[dependencies]
bstr = {version = "1.1.0", features = []} # Only uses one function, so no features needed.
[dependencies]
bstr = { version = "1.1.0", features = [
] } # Only uses one function, so no features needed.

[features]
default = ["utf8"]
Expand Down
2 changes: 1 addition & 1 deletion examples/json_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ pub fn json<'a>() -> Parser<'a, u8, JsonValue> {
fn main() {
let mut file = File::open("examples/test.json").unwrap();
let mut input: Vec<u8> = Vec::new();
file.read_to_end(&mut input);
file.read_to_end(&mut input).expect("read test.json");
println!("{:?}", json().parse(input.as_slice()));
}
2 changes: 1 addition & 1 deletion examples/whitespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn container<'a>() -> Parser<'a, u8, Container> {
}

fn mylang<'a>() -> Parser<'a, u8, Vec<Container>> {
(whitespace() * list(call(container), whitespace()))
whitespace() * list(call(container), whitespace())
}

fn main() -> Result<(), ()> {
Expand Down

0 comments on commit 85d7807

Please sign in to comment.