Skip to content

Commit

Permalink
Use consistent syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pczarn committed Mar 5, 2016
1 parent 3778560 commit c20cd8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/collections/hash/table.rs
Expand Up @@ -466,7 +466,7 @@ impl<K, V, M> FullBucket<K, V, M> where M: Deref<Target=RawTable<K, V>> + DerefM
}
}

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

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

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

0 comments on commit c20cd8f

Please sign in to comment.