@@ -18,7 +18,11 @@ use core::{
18
18
#[ cfg( feature = "bevy_reflect" ) ]
19
19
use bevy_reflect:: Reflect ;
20
20
pub 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
+ } ;
22
26
23
27
use super :: { Entity , EntityEquivalent , EntityHash , EntitySetIterator } ;
24
28
@@ -35,7 +39,7 @@ impl<V> EntityIndexMap<V> {
35
39
///
36
40
/// Equivalent to [`IndexMap::with_hasher(EntityHash)`].
37
41
///
38
- /// [`IndexMap::with_hasher(EntityHash)`]: IndexMap::with_hasher
42
+ /// [`IndexMap::with_hasher(EntityHash)`]: indexmap:: IndexMap::with_hasher
39
43
#[ inline]
40
44
pub const fn new ( ) -> Self {
41
45
Self ( IndexMap :: with_hasher ( EntityHash ) )
@@ -45,7 +49,7 @@ impl<V> EntityIndexMap<V> {
45
49
///
46
50
/// Equivalent to [`IndexMap::with_capacity_and_hasher(n, EntityHash)`].
47
51
///
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
49
53
#[ inline]
50
54
pub fn with_capacity ( n : usize ) -> Self {
51
55
Self ( IndexMap :: with_capacity_and_hasher ( n, EntityHash ) )
@@ -1224,15 +1228,15 @@ impl<'a, V> Drain<'a, V> {
1224
1228
Drain :: < ' _ , _ , S > ( drain, PhantomData )
1225
1229
}
1226
1230
1227
- /// Returns the inner [`Drain`](map::Drain).
1231
+ /// Returns the inner [`Drain`](indexmap:: map::Drain).
1228
1232
#[ inline]
1229
1233
pub fn into_inner ( self ) -> map:: Drain < ' a , Entity , V > {
1230
1234
self . 0
1231
1235
}
1232
1236
1233
1237
/// Returns a slice of the remaining entries in the iterator.
1234
1238
///
1235
- /// Equivalent to [`map::Drain::as_slice`].
1239
+ /// Equivalent to [`map::Drain::as_slice`](`indexmap::map::Drain::as_slice`) .
1236
1240
#[ inline]
1237
1241
pub fn as_slice ( & self ) -> & Slice < V > {
1238
1242
// SAFETY: The source IndexMap uses EntityHash.
0 commit comments