From f0d7fe3488418058fb5d892a97d706356c27576b Mon Sep 17 00:00:00 2001 From: Edgar Date: Mon, 1 Feb 2021 13:06:17 +0100 Subject: [PATCH] upd readme --- Cargo.toml | 2 +- README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1964793..4197cfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sitewriter" -version = "0.3.0" +version = "0.3.1" authors = ["Edgar "] edition = "2018" description = "A sitemap writing library." diff --git a/README.md b/README.md index bda5c9f..614b868 100644 --- a/README.md +++ b/README.md @@ -18,31 +18,31 @@ use sitewriter::*; fn main() { let mut sitemap = Sitemap::new(); - sitemap.urls.push(Url::new("https://edgarluque.com/projects".to_owned())); + sitemap.urls.push(Url::new("https://edgarluque.com/projects")); sitemap.urls.push(Url { - loc: "https://edgarluque.com/".to_owned(), + loc: "https://edgarluque.com/", changefreq: Some(ChangeFreq::Daily), priority: Some(1.0), lastmod: Some(Utc::now()), }); sitemap.urls.push(Url { - loc: "https://edgarluque.com/blog".to_owned(), + loc: "https://edgarluque.com/blog", changefreq: Some(ChangeFreq::Weekly), priority: Some(0.8), lastmod: Some(Utc::now()), }); sitemap.urls.push(Url { - loc: "https://edgarluque.com/blog/sitewriter".to_owned(), + loc: "https://edgarluque.com/blog/sitewriter", changefreq: Some(ChangeFreq::Never), priority: Some(0.5), lastmod: Some(Utc.ymd(2020, 11, 22).and_hms(15, 10, 15)), }); sitemap.urls.push(Url { - loc: "https://edgarluque.com/blog/some-future-post".to_owned(), + loc: "https://edgarluque.com/blog/some-future-post", changefreq: Some(ChangeFreq::Never), priority: Some(0.5), lastmod: Some(Utc.from_utc_datetime(&Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc())),