Skip to content

Commit 214043d

Browse files
authored
chore(deps): update nom to v8.0.0 (#11)
1 parent bc0c67a commit 214043d

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

Cargo.lock

Lines changed: 2 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ crate-type = ["cdylib", "rlib"]
2929

3030
[dependencies]
3131
clap = { version = "4.5.31", features = ["cargo"] }
32-
nom = "7.1.3"
32+
nom = "8.0.0"
3333
wasm-bindgen = "0.2.100"

src/parser/text/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use nom::{
2-
IResult,
2+
IResult, Parser,
33
branch::alt,
44
bytes::complete::{tag, take_until1},
55
};
@@ -13,7 +13,7 @@ pub fn process_text_block<'a>(
1313
let (rest, _) = tag(".")(input)?;
1414

1515
// eat one \r\n or \n
16-
let (rest, _) = alt((tag("\r\n"), tag("\n")))(rest)?;
16+
let (rest, _) = alt((tag("\r\n"), tag("\n"))).parse(rest)?;
1717

1818
let indent_string: &str = if let Some(indent_string) = &context.indent_string {
1919
indent_string

0 commit comments

Comments
 (0)