From 9b03e2d7c2c5ff5487ec51d4cc2e55a0ce70845c Mon Sep 17 00:00:00 2001 From: The Dax Date: Tue, 8 Jul 2025 18:08:12 -0400 Subject: [PATCH] Properly address "warning: method `default` can be confused for the standard trait method `std::default::Default::default`" --- src/inventory/generic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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], }