mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-09 15:37:45 +00:00
Properly address "warning: method default
can be confused for the standard trait method std::default::Default::default
"
This commit is contained in:
parent
93ddff8ed4
commit
9b03e2d7c2
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ pub struct GenericStorage<const N: usize> {
|
|||
pub slots: Vec<Item>,
|
||||
}
|
||||
|
||||
impl<const N: usize> GenericStorage<N> {
|
||||
pub fn default() -> Self {
|
||||
impl<const N: usize> Default for GenericStorage<N> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
slots: vec![Item::default(); N],
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue