mirror of
https://github.com/edg-l/sitewriter.git
synced 2024-11-09 09:38:24 +00:00
update deps
This commit is contained in:
parent
ca1b00b469
commit
5b553831ca
|
@ -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"] }
|
||||||
|
|
|
@ -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())?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue