Cleans up further database
This commit is contained in:
parent
495607efb4
commit
91c5c4bb37
|
|
@ -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<InnerStats> {
|
|||
|
||||
#[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)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue