update deps

This commit is contained in:
Edgar 2023-12-29 12:40:20 +01:00
parent ca1b00b469
commit 5b553831ca
No known key found for this signature in database
GPG Key ID: 70ADAE8F35904387
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "sitewriter"
version = "1.0.3"
version = "1.0.4"
authors = ["Edgar <git@edgarluque.com>"]
edition = "2021"
description = "A sitemap writing library."
@ -16,7 +16,7 @@ resolver = "2"
chrono = { version = "0.4.31", default-features = false, features = ["std", "clock"] }
derive_builder = "0.12.0"
quick-xml = { version = "0.31.0", default-features = false }
url = "2.4"
url = "2.5.0"
[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }

View File

@ -69,7 +69,6 @@
#![deny(missing_docs)]
#![deny(warnings)]
#![deny(clippy::nursery)]
#![deny(clippy::pedantic)]
#![deny(clippy::all)]
use chrono::{DateTime, SecondsFormat, Utc};
@ -189,9 +188,7 @@ where
writer.write_event(Event::Start(urlset))?;
for entry in urls {
writer
.write_event(Event::Start(BytesStart::new("url")))
.expect("error opening url");
writer.write_event(Event::Start(BytesStart::new("url")))?;
write_tag(&mut writer, "loc", entry.loc.as_str())?;