Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Nov 8, 2023
1 parent de8ecf0 commit d2fd748
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/podcast/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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")
Expand Down
8 changes: 4 additions & 4 deletions src/podcast/location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,15 @@ 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",
"geo:37.786971,-122.399677,250;u=350",
"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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d2fd748

Please sign in to comment.