Skip to content

Commit

Permalink
fix && fmt
Browse files Browse the repository at this point in the history
Signed-off-by: danbugs <[email protected]>
  • Loading branch information
danbugs committed Jan 5, 2024
1 parent 0c34251 commit d8cb3a1
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion database/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn try_connect() -> ConnectionResult<PgConnection> {

#[cfg(test)]
mod tests {
#![allow(unused)]
#![allow(unused)]
use super::*;
use anyhow::Result;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/error_logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn insert_error_log(err: String) -> Result<()> {
mod tests {
#![allow(unused)]
use super::*;

#[test]
#[cfg(feature = "skip_db_tests")]
fn test_insert_error_log() -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pidgtm_compile_times.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn insert_pidgtm_compile_time(tis: i32) -> Result<()> {

#[cfg(test)]
mod tests {
#![allow(unused)]
#![allow(unused)]
use super::*;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion lib/src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ pub fn get_top_two_characters(pid: i32) -> Result<Vec<Option<String>>> {

#[cfg(test)]
mod tests {
#![allow(unused)]
#![allow(unused)]
use super::*;

const DANTOTTO_PLAYER_ID: i32 = 1178271;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/player_page_views.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn insert_player_page_view(pid: i32) -> Result<()> {

#[cfg(test)]
mod tests {
#![allow(unused)]
#![allow(unused)]
use super::*;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion lib/src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pub fn get_competitor_type(player_id: i32) -> Result<(u32, u32)> {

#[cfg(test)]
mod tests {
#![allow(unused)]
#![allow(unused)]
use crate::common::get_sggset_test_data;

use super::*;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/tournament.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ fn delete_tournaments_from_requester_id_provided_connection(

#[cfg(test)]
mod tests {
#![allow(unused)]
#![allow(unused)]
use anyhow::Result;
use diesel::Connection;

Expand Down
3 changes: 2 additions & 1 deletion startgg_api/src/queries/event_getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ pub async fn get_phase_id_from_event_slug(event_slug: &str) -> Result<i32> {

#[cfg(test)]
mod tests {
#![allow(unused)] use anyhow::Result;
#![allow(unused)]
use anyhow::Result;

use crate::queries::event_getter::make_event_getter_query;

Expand Down
3 changes: 2 additions & 1 deletion startgg_api/src/queries/player_getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ pub async fn make_pidgtm_player_getter_query(

#[cfg(test)]
mod tests {
#![allow(unused)] use std::sync::{Arc, Mutex};
#![allow(unused)]
use std::sync::{Arc, Mutex};

use anyhow::Result;

Expand Down
3 changes: 2 additions & 1 deletion startgg_api/src/queries/seeding_getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ pub async fn make_seeding_getter_query(phase_id: i32) -> Result<Vec<Seed>> {

#[cfg(test)]
mod tests {
#![allow(unused)] use crate::{
#![allow(unused)]
use crate::{
queries::seeding_getter::{SeedingGetterData, SeedingGetterVars, SEEDING_GETTER_QUERY},
StartGG,
};
Expand Down
3 changes: 2 additions & 1 deletion startgg_api/src/queries/set_getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ pub async fn make_set_getter_query(

#[cfg(test)]
mod tests {
#![allow(unused)] use std::sync::Arc;
#![allow(unused)]
use std::sync::Arc;
use std::sync::Mutex;

use anyhow::Result;
Expand Down

0 comments on commit d8cb3a1

Please sign in to comment.