Final typos

This commit is contained in:
Dandaedre 2025-02-18 00:22:16 +01:00
parent 02c76ca33a
commit d4723e828e
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
2 changed files with 19 additions and 7 deletions

View File

@ -249,5 +249,5 @@ pub trait Scenario {
/// Gather the selected view tables
/// All the inner generation is done gradually and populate all section to finally generate the views
fn generate_view_tables(&self) -> Self::ViewTableType;
fn generate_view_tables(&self, equipement_list: Self::FinalListType) -> Self::ViewTableType;
}

View File

@ -9,9 +9,12 @@
#![allow(dead_code)]
use struct_field_names_as_array::FieldNamesAsArray;
use crate::{
error::{EquipementError, FatalEquipementError},
interfaces::{RecipeDatabase, Scenario, ViewTable},
weaponry_structs::equipement_structs::InnerEquipementStats,
};
use super::equipement_advanced_repr::RefinedEquipementList;
@ -24,8 +27,9 @@ impl RecipeDatabase for DatabaseMock {
table: &str,
fields: &[&str],
) -> std::result::Result<Vec<T>, crate::error::FatalEquipementError> {
let _ = fields;
let _ = table;
todo!()
unimplemented!()
}
fn serialize_vec_from_table_with_query<T>(
@ -34,9 +38,10 @@ impl RecipeDatabase for DatabaseMock {
fields: &[&str],
query: &str,
) -> std::result::Result<Vec<T>, FatalEquipementError> {
let _ = fields;
let _ = table;
let _ = query;
todo!()
unimplemented!()
}
fn new(origin: &str) -> Result<Self, FatalEquipementError>
@ -44,12 +49,12 @@ impl RecipeDatabase for DatabaseMock {
Self: std::marker::Sized,
{
let _ = origin;
todo!()
unimplemented!()
}
fn initialize_empty_table<T>(table: &str) -> Result<(), EquipementError> {
let _ = table;
todo!()
unimplemented!()
}
}
/// Mock config
@ -94,11 +99,18 @@ impl Scenario for CrossRecipeScenario {
}
fn generate_refined_recipes(&self) -> Self::FinalListType {
let _all_parts = &self.database;
let _all_parts = &self
.database
.serialize_vec_from_table_with_query::<InnerEquipementStats>(
"bob",
&InnerEquipementStats::FIELD_NAMES_AS_ARRAY,
"WHERE CATEGOTY == 'Bobitty'",
);
todo!()
}
fn generate_view_tables(&self) -> Self::ViewTableType {
fn generate_view_tables(&self, equipement_list: Self::FinalListType) -> Self::ViewTableType {
let _ = equipement_list;
todo!()
}
}