From d2fd7480c894f2a59da8ca82f95055b7fd23a4c5 Mon Sep 17 00:00:00 2001 From: Dovydas Date: Wed, 8 Nov 2023 17:27:45 +0000 Subject: [PATCH] fix lint errors --- src/podcast/image.rs | 4 ++-- src/podcast/location.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/podcast/image.rs b/src/podcast/image.rs index 234db17..95439a6 100644 --- a/src/podcast/image.rs +++ b/src/podcast/image.rs @@ -101,7 +101,7 @@ mod tests { #[test] fn test_srcset() { - let strings = vec![ + let strings = [ "https://example.com/images/ep1/pci_avatar-massive.jpg 1500w, https://example.com/images/ep1/pci_avatar-middle.jpg 600w, https://example.com/images/ep1/pci_avatar-small.jpg 300w, @@ -111,7 +111,7 @@ mod tests { https://example.com/images/ep1/pci_avatar-small.jpg 300w, https://example.com/images/ep1/pci_avatar-tiny.jpg 150w", ]; - let srcsets = vec![ + let srcsets = [ SrcSet::Ok(vec![ ( url::Url::from_str("https://example.com/images/ep1/pci_avatar-massive.jpg") diff --git a/src/podcast/location.rs b/src/podcast/location.rs index d3e118a..a0d09bd 100644 --- a/src/podcast/location.rs +++ b/src/podcast/location.rs @@ -293,7 +293,7 @@ mod tests { #[test] fn test_geo() { - let strings = vec![ + let strings = [ "geo:37.786971,-122.399677", "geo:37.786971,-122.399677,250", "geo:37.786971,-122.399677;u=350", @@ -301,7 +301,7 @@ mod tests { "geo:37.786971,-122.399677,250,u=350", "geo:137.786971,-122.399677,250;u=350", ]; - let geos = vec![ + let geos = [ Geo::Ok { latitude: 37.786971, longitude: -122.399677, @@ -344,8 +344,8 @@ mod tests { #[test] fn test_osm() { - let strings = vec!["R148838", "W5013364", "R7444#188", "7444#188"]; - let osms = vec![ + let strings = ["R148838", "W5013364", "R7444#188", "7444#188"]; + let osms = [ Osm::Ok { type_: OsmType::Relation, id: 148838,