diff --git a/weaponry/src/database.rs b/weaponry/src/database.rs index ecea348..0f56fad 100644 --- a/weaponry/src/database.rs +++ b/weaponry/src/database.rs @@ -4,16 +4,9 @@ //! Implements the basics deserialisation from a database to the weaponry components //! Should dump whole database in a vec of structs from weaponry_structs #![allow(dead_code)] -#![allow(unused_imports)] -#![allow(missing_docs)] -#![allow(clippy::missing_docs_in_private_items)] -#![allow(clippy::single_char_add_str)] -#![allow(clippy::explicit_auto_deref)] -use std::ops::Deref; use crate::weaponry_structs::equipement_structs::InnerStats; -use rusqlite::{self, Connection, Result, params}; -use struct_field_names_as_array::FieldNamesAsArray; +use rusqlite::{self, Connection, Result}; /// Generate a SELECT query with fields generated from a struct. Returns a String fn generate_query(fields: &[&str], table_name: &str) -> String { @@ -51,9 +44,8 @@ pub fn get_data() -> Vec { #[cfg(test)] mod test { - use std::any::type_name; - use pretty_assertions::assert_eq; + use struct_field_names_as_array::FieldNamesAsArray; use super::*; #[derive(FieldNamesAsArray)]