From 91c5c4bb37016f6832decde5bd1b57a778c5752a Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Wed, 12 Feb 2025 21:29:15 +0100 Subject: [PATCH] Cleans up further database --- weaponry/src/database.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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)]