Skip to content

Commit c20cd8f

Browse files
committed
Use consistent syntax
1 parent 3778560 commit c20cd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/collections/hash/table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ impl<K, V, M> FullBucket<K, V, M> where M: Deref<Target=RawTable<K, V>> + DerefM
466466
}
467467
}
468468

469-
impl<'t, K, V, M: Deref<Target=RawTable<K, V>> + 't> FullBucket<K, V, M> {
469+
impl<'t, K, V, M> FullBucket<K, V, M> where M: Deref<Target=RawTable<K, V>> + 't {
470470
/// Exchange a bucket state for immutable references into the table.
471471
/// Because the underlying reference to the table is also consumed,
472472
/// no further changes to the structure of the table are possible;
@@ -480,7 +480,7 @@ impl<'t, K, V, M: Deref<Target=RawTable<K, V>> + 't> FullBucket<K, V, M> {
480480
}
481481
}
482482

483-
impl<'t, K, V, M: Deref<Target=RawTable<K, V>> + DerefMut + 't> FullBucket<K, V, M> {
483+
impl<'t, K, V, M> FullBucket<K, V, M> where M: Deref<Target=RawTable<K, V>> + DerefMut + 't {
484484
/// This works similarly to `into_refs`, exchanging a bucket state
485485
/// for mutable references into the table.
486486
pub fn into_mut_refs(self) -> (&'t mut K, &'t mut V) {
@@ -491,7 +491,7 @@ impl<'t, K, V, M: Deref<Target=RawTable<K, V>> + DerefMut + 't> FullBucket<K, V,
491491
}
492492
}
493493

494-
impl<K, V, M: Deref<Target=RawTable<K, V>>> GapThenFull<K, V, M> {
494+
impl<K, V, M> GapThenFull<K, V, M> where M: Deref<Target=RawTable<K, V>> {
495495
#[inline]
496496
pub fn full(&self) -> &FullBucket<K, V, M> {
497497
&self.full

0 commit comments

Comments
 (0)