diff options
| author | Piotr Czarnecki <pioczarn@gmail.com> | 2016-02-08 13:05:16 +0100 |
|---|---|---|
| committer | Piotr Czarnecki <pioczarn@gmail.com> | 2016-03-05 22:22:36 +0100 |
| commit | c20cd8fac97fe4d4594d6f78b3adb0e9b171c3bf (patch) | |
| tree | 45eb1820a5c41eba6abd40ec30495a8508c625f1 /src/libstd | |
| parent | 37785608092c995731bc4e90014668b164a8d560 (diff) | |
| download | rust-c20cd8fac97fe4d4594d6f78b3adb0e9b171c3bf.tar.gz rust-c20cd8fac97fe4d4594d6f78b3adb0e9b171c3bf.zip | |
Use consistent syntax
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/table.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/collections/hash/table.rs b/src/libstd/collections/hash/table.rs index e3acbc96fda..3c61faae8ea 100644 --- a/src/libstd/collections/hash/table.rs +++ b/src/libstd/collections/hash/table.rs @@ -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; @@ -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) { @@ -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 |
