We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Index
IndexMut
1 parent bab82ae commit d394f14Copy full SHA for d394f14
src/arrayvec.rs
@@ -1017,7 +1017,7 @@ where
1017
/// # Panics
1018
/// Panics if index is out of bounds.
1019
fn index(&self, index: I) -> &Self::Output {
1020
- self.get(index).unwrap()
+ self.deref().index(index)
1021
}
1022
1023
@@ -1034,7 +1034,7 @@ where
1034
1035
1036
fn index_mut(&mut self, index: I) -> &mut Self::Output {
1037
- self.get_mut(index).unwrap()
+ self.deref_mut().index_mut(index)
1038
1039
1040
0 commit comments