From 17ed231429bf8f27bc99efcb41aeb4f32f904bc1 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Fri, 19 May 2023 21:57:14 +0200 Subject: [PATCH] Lints --- src/testlib.rs | 26 ++++----- tests/lib.rs | 152 ++++++++++++++++++++++++------------------------- 2 files changed, 89 insertions(+), 89 deletions(-) diff --git a/src/testlib.rs b/src/testlib.rs index 819bae3..a790b10 100644 --- a/src/testlib.rs +++ b/src/testlib.rs @@ -13,7 +13,7 @@ macro_rules! collection { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 1, title: "track a.a.1".to_string(), }, @@ -24,7 +24,7 @@ macro_rules! collection { }, }, Track { - id: TrackId{ + id: TrackId { number: 2, title: "track a.a.2".to_string(), }, @@ -38,7 +38,7 @@ macro_rules! collection { }, }, Track { - id: TrackId{ + id: TrackId { number: 3, title: "track a.a.3".to_string(), }, @@ -57,7 +57,7 @@ macro_rules! collection { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 1, title: "track a.b.1".to_string(), }, @@ -68,7 +68,7 @@ macro_rules! collection { }, }, Track { - id: TrackId{ + id: TrackId { number: 2, title: "track a.b.2".to_string(), }, @@ -94,7 +94,7 @@ macro_rules! collection { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 1, title: "track b.a.1".to_string(), }, @@ -105,7 +105,7 @@ macro_rules! collection { }, }, Track { - id: TrackId{ + id: TrackId { number: 2, title: "track b.a.2".to_string(), }, @@ -127,7 +127,7 @@ macro_rules! collection { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 1, title: "track b.b.1".to_string(), }, @@ -138,7 +138,7 @@ macro_rules! collection { }, }, Track { - id: TrackId{ + id: TrackId { number: 2, title: "track b.b.2".to_string(), }, @@ -167,7 +167,7 @@ macro_rules! collection { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 1, title: "track c.a.1".to_string(), }, @@ -178,7 +178,7 @@ macro_rules! collection { }, }, Track { - id: TrackId{ + id: TrackId { number: 2, title: "track c.a.2".to_string(), }, @@ -200,7 +200,7 @@ macro_rules! collection { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 1, title: "track c.b.1".to_string(), }, @@ -211,7 +211,7 @@ macro_rules! collection { }, }, Track { - id: TrackId{ + id: TrackId { number: 2, title: "track c.b.2".to_string(), }, diff --git a/tests/lib.rs b/tests/lib.rs index de4c371..4291501 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -50,7 +50,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 04, title: String::from("Leshiy"), }, @@ -61,7 +61,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 05, title: String::from("Zakliatie"), }, @@ -72,7 +72,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 06, title: String::from("Predok"), }, @@ -83,7 +83,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 07, title: String::from("Nikogda"), }, @@ -94,7 +94,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 08, title: String::from("Tam za tumanami"), }, @@ -105,7 +105,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 09, title: String::from("Potomok"), }, @@ -116,7 +116,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 10, title: String::from("Slovo"), }, @@ -127,7 +127,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 11, title: String::from("Odna"), }, @@ -138,7 +138,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 12, title: String::from("Vo moiom sadochke…"), }, @@ -149,7 +149,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 13, title: String::from("Stenka na stenku"), }, @@ -160,7 +160,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 14, title: String::from("Zimushka"), }, @@ -185,7 +185,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 01, title: String::from("Samon"), }, @@ -196,7 +196,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 02, title: String::from("Primordial Breath"), }, @@ -207,7 +207,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 03, title: String::from("Inis Mona"), }, @@ -218,7 +218,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 04, title: String::from("Gray Sublime Archon"), }, @@ -229,7 +229,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 05, title: String::from("Anagantios"), }, @@ -240,7 +240,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 06, title: String::from("Bloodstained Ground"), }, @@ -251,7 +251,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 07, title: String::from("The Somber Lay"), }, @@ -262,7 +262,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 08, title: String::from("Slanias Song"), }, @@ -273,7 +273,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 09, title: String::from("Giamonios"), }, @@ -284,7 +284,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 10, title: String::from("Tarvos"), }, @@ -295,7 +295,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 11, title: String::from("Calling the Rain"), }, @@ -306,7 +306,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 12, title: String::from("Elembivos"), }, @@ -325,7 +325,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 01, title: String::from("Verja Urit an Bitus"), }, @@ -336,7 +336,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 02, title: String::from("Uis Elveti"), }, @@ -347,7 +347,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 03, title: String::from("Ôrô"), }, @@ -358,7 +358,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 04, title: String::from("Lament"), }, @@ -369,7 +369,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 05, title: String::from("Druid"), }, @@ -380,7 +380,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 06, title: String::from("Jêzaïg"), }, @@ -405,7 +405,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 01, title: String::from("Intro = Chaos"), }, @@ -416,7 +416,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 02, title: String::from("Modlitwa"), }, @@ -427,7 +427,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 03, title: String::from("Długa droga z piekła"), }, @@ -438,7 +438,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 04, title: String::from("Synowie ognia"), }, @@ -449,7 +449,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 05, title: String::from("1902"), }, @@ -460,7 +460,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 06, title: String::from("Krew za krew"), }, @@ -471,7 +471,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 07, title: String::from("Kulminacja"), }, @@ -482,7 +482,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 08, title: String::from("Judasz"), }, @@ -493,7 +493,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 09, title: String::from("Więzy"), }, @@ -504,7 +504,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 10, title: String::from("Zagubione dusze"), }, @@ -515,7 +515,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 11, title: String::from("Linia życia"), }, @@ -539,7 +539,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 01, title: String::from("Unbreakable"), }, @@ -550,7 +550,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 02, title: String::from("Guilt Trips and Sins"), }, @@ -561,7 +561,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 03, title: String::from("The Long Goodbye"), }, @@ -572,7 +572,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 04, title: String::from("Close Encounters"), }, @@ -583,7 +583,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 05, title: String::from("Paranoia"), }, @@ -594,7 +594,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 06, title: String::from("Let Me Out of Here"), }, @@ -605,7 +605,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 07, title: String::from("Leeches"), }, @@ -630,7 +630,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 01, title: String::from("Fight Fire with Fire"), }, @@ -641,7 +641,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 02, title: String::from("Ride the Lightning"), }, @@ -652,7 +652,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 03, title: String::from("For Whom the Bell Tolls"), }, @@ -663,7 +663,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 04, title: String::from("Fade to Black"), }, @@ -674,7 +674,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 05, title: String::from("Trapped under Ice"), }, @@ -685,7 +685,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 06, title: String::from("Escape"), }, @@ -696,7 +696,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 07, title: String::from("Creeping Death"), }, @@ -707,7 +707,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 08, title: String::from("The Call of Ktulu"), }, @@ -726,7 +726,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, tracks: vec![ Track { - id: TrackId{ + id: TrackId { number: 01, title: String::from("The Ecstasy of Gold"), }, @@ -737,7 +737,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 02, title: String::from("The Call of Ktulu"), }, @@ -748,7 +748,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 03, title: String::from("Master of Puppets"), }, @@ -759,7 +759,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 04, title: String::from("Of Wolf and Man"), }, @@ -770,7 +770,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 05, title: String::from("The Thing That Should Not Be"), }, @@ -781,7 +781,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 06, title: String::from("Fuel"), }, @@ -792,7 +792,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 07, title: String::from("The Memory Remains"), }, @@ -803,7 +803,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 08, title: String::from("No Leaf Clover"), }, @@ -814,7 +814,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 09, title: String::from("Hero of the Day"), }, @@ -825,7 +825,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 10, title: String::from("Devil’s Dance"), }, @@ -836,7 +836,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 11, title: String::from("Bleeding Me"), }, @@ -847,7 +847,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 12, title: String::from("Nothing Else Matters"), }, @@ -858,7 +858,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 13, title: String::from("Until It Sleeps"), }, @@ -869,7 +869,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 14, title: String::from("For Whom the Bell Tolls"), }, @@ -880,7 +880,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 15, title: String::from("−Human"), }, @@ -891,7 +891,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 16, title: String::from("Wherever I May Roam"), }, @@ -902,7 +902,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 17, title: String::from("Outlaw Torn"), }, @@ -913,7 +913,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 18, title: String::from("Sad but True"), }, @@ -924,7 +924,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 19, title: String::from("One"), }, @@ -935,7 +935,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 20, title: String::from("Enter Sandman"), }, @@ -946,7 +946,7 @@ static COLLECTION: Lazy> = Lazy::new(|| { }, }, Track { - id: TrackId{ + id: TrackId { number: 21, title: String::from("Battery"), },