Skip to content

Commit 60f4ce6

Browse files
Merge pull request #1 from flub/flub/fix-poolable-capacity
2 parents b96f83c + 7803ca1 commit 60f4ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/poolable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub trait Poolable {
99

1010
impl<T: Default + Clone> Poolable for Vec<T> {
1111
fn capacity(&self) -> usize {
12-
self.capacity()
12+
self.len()
1313
}
1414

1515
fn alloc(size: usize) -> Self {
@@ -23,7 +23,7 @@ where
2323
S: BuildHasher + Default,
2424
{
2525
fn capacity(&self) -> usize {
26-
self.capacity()
26+
self.len()
2727
}
2828

2929
fn alloc(size: usize) -> Self {

0 commit comments

Comments
 (0)