Skip to content

Commit

Permalink
Remove ext trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Apr 8, 2024
1 parent c24a9b9 commit 63ad0be
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/generic_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ pub trait GenericStorage<T>: Deref<Target = [T]> + DerefMut<Target = [T]> + Send
fn push(&mut self, value: T);
}

pub trait GenericStorageCloneExt<T>: GenericStorage<T>
where
T: Clone,
{
fn resize(&mut self, new_len: usize, value: T);
}

impl<T: Send + Sync> GenericStorage<T> for Vec<T> {
fn push(&mut self, value: T) {
self.push(value);
Expand Down

0 comments on commit 63ad0be

Please sign in to comment.