Skip to content

Commit e675e9c

Browse files
committed
chore: bump nom from 8.0.0-alpha2 to 8.0.0
1 parent 7b1c2c5 commit e675e9c

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

Cargo.lock

+14-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jsonwebtoken = { version = "9.3.0" }
4040
kvsd = { version = "0.1.3", default-features = false }
4141
mockall = { version = "0.13.1" }
4242
moka = { version = "0.12.10", features = ["future"] }
43-
nom = { version = "8.0.0-alpha2", default-features = false, features = ["std"] }
43+
nom = { version = "8.0.0", default-features = false, features = ["std"] }
4444
octocrab = { version = "0.38.0", features = ["rustls-webpki-tokio"] }
4545
once_cell = { version = "1.20.2" }
4646
pprof = { version = "0.13", features = ["flamegraph", "criterion"] }

crates/synd_term/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ tui-widgets = { version = "0.4.1", default-features = false, features =
5656
unicode-segmentation = "1.12.0"
5757
update-informer = { version = "1.2.0", default-features = false, features = ["crates", "reqwest", "rustls-tls"] }
5858
url = { workspace = true }
59+
nom-language = "0.1.0"
5960

6061
[features]
6162
# Integration test

crates/synd_term/src/application/input_parser.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use nom::error::VerboseErrorKind;
1+
use nom_language::error::{VerboseError, VerboseErrorKind};
22
use thiserror::Error;
33

44
use crate::{
@@ -7,7 +7,7 @@ use crate::{
77
types::{self},
88
};
99

10-
type NomError<'s> = nom::error::VerboseError<&'s str>;
10+
type NomError<'s> = VerboseError<&'s str>;
1111

1212
const CTX_REQUIREMENT: &str = "requirement";
1313
const CTX_CATEGORY: &str = "category";
@@ -98,6 +98,7 @@ mod feed {
9898
sequence::delimited,
9999
AsChar, Finish, IResult, Parser,
100100
};
101+
use nom_language::error::{VerboseError, VerboseErrorKind};
101102
use synd_feed::types::{Category, FeedUrl};
102103
use url::Url;
103104

@@ -174,8 +175,8 @@ mod feed {
174175
Ok(url) => Ok((remain, FeedUrl::from(url))),
175176
Err(err) => {
176177
tracing::warn!("Invalid url: {err}");
177-
let nom_err = nom::error::VerboseError {
178-
errors: vec![(s, nom::error::VerboseErrorKind::Context("url"))],
178+
let nom_err = VerboseError {
179+
errors: vec![(s, VerboseErrorKind::Context("url"))],
179180
};
180181
Err(nom::Err::Failure(nom_err))
181182
}
@@ -184,8 +185,6 @@ mod feed {
184185

185186
#[cfg(test)]
186187
mod tests {
187-
use nom::error::VerboseErrorKind;
188-
189188
use super::*;
190189

191190
#[test]

0 commit comments

Comments
 (0)