Use usize for indices into InlineFragments.

This commit is contained in:
Ms2ger 2015-04-02 14:53:30 +02:00
parent 232dadc81d
commit a0ad6ba2d4

View file

@ -727,7 +727,7 @@ impl InlineFragments {
}
/// Returns the number of inline fragments.
pub fn len(&self) -> uint {
pub fn len(&self) -> usize {
self.fragments.len()
}
@ -748,12 +748,12 @@ impl InlineFragments {
}
/// A convenience function to return the fragment at a given index.
pub fn get<'a>(&'a self, index: uint) -> &'a Fragment {
pub fn get<'a>(&'a self, index: usize) -> &'a Fragment {
&self.fragments[index]
}
/// A convenience function to return a mutable reference to the fragment at a given index.
pub fn get_mut<'a>(&'a mut self, index: uint) -> &'a mut Fragment {
pub fn get_mut<'a>(&'a mut self, index: usize) -> &'a mut Fragment {
&mut self.fragments[index]
}
}