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

View file

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