From 9224edca65a0d67ee0b680fe9380e5a134df16eb Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sun, 17 Oct 2021 12:25:47 -0600 Subject: [PATCH] Missed database check in --- geoffrey_db/src/database.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/geoffrey_db/src/database.rs b/geoffrey_db/src/database.rs index ef1952a..6805164 100644 --- a/geoffrey_db/src/database.rs +++ b/geoffrey_db/src/database.rs @@ -125,7 +125,7 @@ mod tests { #[test] fn test_insert() { - let player = Player::new("CoolZero123", UserID::DiscordUUID {discord_uuid: 0u64}); + let player = Player::new("CoolZero123", UserID::DiscordUUID { discord_uuid: 0u64 }); let p2 = DB.insert::(player.clone()).unwrap(); @@ -137,8 +137,8 @@ mod tests { #[test] fn test_unique_insert() { - let player1 = Player::new("CoolZero123", UserID::DiscordUUID {discord_uuid: 0u64}); - let player2 = Player::new("CoolZero123", UserID::DiscordUUID {discord_uuid: 0u64}); + let player1 = Player::new("CoolZero123", UserID::DiscordUUID { discord_uuid: 0u64 }); + let player2 = Player::new("CoolZero123", UserID::DiscordUUID { discord_uuid: 0u64 }); DB.insert::(player1.clone()).unwrap(); assert_eq!(DB.insert::(player2.clone()).is_err(), true); @@ -148,7 +148,7 @@ mod tests { #[test] fn test_get() { - let player = Player::new("CoolZero123", UserID::DiscordUUID {discord_uuid: 0u64}); + let player = Player::new("CoolZero123", UserID::DiscordUUID { discord_uuid: 0u64 }); let p2 = DB.insert::(player.clone()).unwrap(); @@ -160,7 +160,7 @@ mod tests { #[test] fn test_filter() { - let player = Player::new("CoolZero123", UserID::DiscordUUID {discord_uuid: 0u64}); + let player = Player::new("CoolZero123", UserID::DiscordUUID { discord_uuid: 0u64 }); let player = DB.insert::(player.clone()).unwrap(); let loc = Location::new( "Test Shop", @@ -190,7 +190,7 @@ mod tests { let insert_count = 1000; let timer = Instant::now(); for i in 0..insert_count { - let player = Player::new("test", UserID::DiscordUUID {discord_uuid: i}); + let player = Player::new("test", UserID::DiscordUUID { discord_uuid: i }); DB.insert::(player).unwrap(); }