Fix minor PR comments

This commit is contained in:
Paul Hauner
2019-08-13 19:37:14 +10:00
parent 4020d13064
commit 6cd0af766e
2 changed files with 4 additions and 8 deletions

View File

@@ -777,11 +777,7 @@ where
}
pub fn get_ref(&self, i: usize) -> Option<&T> {
if i < self.0.len() {
Some(&self.0[i])
} else {
None
}
self.0.get(i)
}
pub fn insert(&mut self, i: usize, element: T) {