diff --git a/src/inventory/generic.rs b/src/inventory/generic.rs index c226c7b..42be1ea 100644 --- a/src/inventory/generic.rs +++ b/src/inventory/generic.rs @@ -7,8 +7,8 @@ pub struct GenericStorage { pub slots: Vec, } -impl GenericStorage { - pub fn default() -> Self { +impl Default for GenericStorage { + fn default() -> Self { Self { slots: vec![Item::default(); N], }