@@ -18,7 +18,11 @@ use core::{
1818#[ cfg( feature = "bevy_reflect" ) ]
1919use bevy_reflect:: Reflect ;
2020pub use indexmap:: map:: Entry ;
21- use indexmap:: map:: { self , IndexMap , IntoValues , ValuesMut } ;
21+ use indexmap:: {
22+ self ,
23+ map:: { self , IntoValues , ValuesMut } ,
24+ IndexMap ,
25+ } ;
2226
2327use super :: { Entity , EntityEquivalent , EntityHash , EntitySetIterator } ;
2428
@@ -35,7 +39,7 @@ impl<V> EntityIndexMap<V> {
3539 ///
3640 /// Equivalent to [`IndexMap::with_hasher(EntityHash)`].
3741 ///
38- /// [`IndexMap::with_hasher(EntityHash)`]: IndexMap::with_hasher
42+ /// [`IndexMap::with_hasher(EntityHash)`]: indexmap:: IndexMap::with_hasher
3943 #[ inline]
4044 pub const fn new ( ) -> Self {
4145 Self ( IndexMap :: with_hasher ( EntityHash ) )
@@ -45,7 +49,7 @@ impl<V> EntityIndexMap<V> {
4549 ///
4650 /// Equivalent to [`IndexMap::with_capacity_and_hasher(n, EntityHash)`].
4751 ///
48- /// [`IndexMap:with_capacity_and_hasher(n, EntityHash)`]: IndexMap::with_capacity_and_hasher
52+ /// [`IndexMap:: with_capacity_and_hasher(n, EntityHash)`]: indexmap:: IndexMap::with_capacity_and_hasher
4953 #[ inline]
5054 pub fn with_capacity ( n : usize ) -> Self {
5155 Self ( IndexMap :: with_capacity_and_hasher ( n, EntityHash ) )
@@ -1224,15 +1228,15 @@ impl<'a, V> Drain<'a, V> {
12241228 Drain :: < ' _ , _ , S > ( drain, PhantomData )
12251229 }
12261230
1227- /// Returns the inner [`Drain`](map::Drain).
1231+ /// Returns the inner [`Drain`](indexmap:: map::Drain).
12281232 #[ inline]
12291233 pub fn into_inner ( self ) -> map:: Drain < ' a , Entity , V > {
12301234 self . 0
12311235 }
12321236
12331237 /// Returns a slice of the remaining entries in the iterator.
12341238 ///
1235- /// Equivalent to [`map::Drain::as_slice`].
1239+ /// Equivalent to [`map::Drain::as_slice`](`indexmap::map::Drain::as_slice`) .
12361240 #[ inline]
12371241 pub fn as_slice ( & self ) -> & Slice < V > {
12381242 // SAFETY: The source IndexMap uses EntityHash.
0 commit comments