1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

resolver 2

This commit is contained in:
Jan Lukas Gernert 2025-01-17 02:58:41 +01:00
parent 89eb87fa85
commit 7c658a4ba8
2 changed files with 3 additions and 5 deletions

View file

@ -1,8 +1,6 @@
[workspace] [workspace]
members = [ members = ["article_scraper", "article_scraper_cli"]
"article_scraper", resolver = "2"
"article_scraper_cli",
]
[workspace.package] [workspace.package]
version = "2.1.1" version = "2.1.1"

View file

@ -275,7 +275,7 @@ impl FullTextParser {
/// See: /// See:
/// - <https://github.com/KWARC/rust-libxml/issues/111> /// - <https://github.com/KWARC/rust-libxml/issues/111>
/// - <https://github.com/Orange-OpenSource/hurl/issues/1535> /// - <https://github.com/Orange-OpenSource/hurl/issues/1535>
/// These two functions should be removed when the issue is fixed in libxml crate. /// These two functions should be removed when the issue is fixed in libxml crate.
fn try_usize_to_i32(value: usize) -> Result<i32, libxml::parser::XmlParseError> { fn try_usize_to_i32(value: usize) -> Result<i32, libxml::parser::XmlParseError> {
if cfg!(target_pointer_width = "16") || (value < i32::MAX as usize) { if cfg!(target_pointer_width = "16") || (value < i32::MAX as usize) {
// Cannot safely use our value comparison, but the conversion if always safe. // Cannot safely use our value comparison, but the conversion if always safe.