about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-16 04:00:24 +0000
committerbors <bors@rust-lang.org>2017-08-16 04:00:24 +0000
commit6f4ab9458a7ad06c8ce630604f533c8c0c0acef4 (patch)
tree8b1076cf97b6482b624b3655e078a4530a460cb3 /src/liballoc/string.rs
parente40dc66f47614eb2d1c8026d112a27b6f8b291d0 (diff)
parent1b6c9605e41b7c7dc23e0e6f633f05912d0463dd (diff)
downloadrust-6f4ab9458a7ad06c8ce630604f533c8c0c0acef4.tar.gz
rust-6f4ab9458a7ad06c8ce630604f533c8c0c0acef4.zip
Auto merge of #43710 - zackmdavis:field_init_shorthand_power_slam, r=Mark-Simulacrum
use field init shorthand EVERYWHERE

Like #43008 (f668999), but [(lacking reasons to be more timid)](https://github.com/rust-lang/rust/pull/43008#issuecomment-312463564) _much more aggressive_.

r? @Mark-Simulacrum
Diffstat (limited to 'src/liballoc/string.rs')
-rw-r--r--src/liballoc/string.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index a913d833a90..76ee0158a62 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -1378,8 +1378,8 @@ impl String {
         let chars_iter = self[start..end].chars();
 
         Drain {
-            start: start,
-            end: end,
+            start,
+            end,
             iter: chars_iter,
             string: self_ptr,
         }
@@ -1442,11 +1442,11 @@ impl String {
         let chars_iter = self[start..end].chars();
 
         Splice {
-            start: start,
-            end: end,
+            start,
+            end,
             iter: chars_iter,
             string: self_ptr,
-            replace_with: replace_with
+            replace_with,
         }
     }