about summary refs log tree commit diff
path: root/src/librustdoc/html/format.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-05-22 15:03:51 -0700
committerMichael Howell <michael@notriddle.com>2022-05-22 15:03:51 -0700
commit207f64948f1a9a3e3c8ac363be5ea4dcfebd200c (patch)
tree92e330f109ddab73f97ae9a3351bb92d1275e8d4 /src/librustdoc/html/format.rs
parent3657d0936f3b0e4f973d37ecb27dcd7ce91db4cc (diff)
downloadrust-207f64948f1a9a3e3c8ac363be5ea4dcfebd200c.tar.gz
rust-207f64948f1a9a3e3c8ac363be5ea4dcfebd200c.zip
Clean up `&args[..]`, use more readable `args.iter()` instead
Diffstat (limited to 'src/librustdoc/html/format.rs')
-rw-r--r--src/librustdoc/html/format.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 4130815069f..da32d8c90be 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -457,7 +457,7 @@ impl clean::GenericArgs {
                             f.write_str("&lt;")?;
                         }
                         let mut comma = false;
-                        for arg in &args[..] {
+                        for arg in args.iter() {
                             if comma {
                                 f.write_str(", ")?;
                             }
@@ -468,7 +468,7 @@ impl clean::GenericArgs {
                                 write!(f, "{}", arg.print(cx))?;
                             }
                         }
-                        for binding in &bindings[..] {
+                        for binding in bindings.iter() {
                             if comma {
                                 f.write_str(", ")?;
                             }
@@ -489,7 +489,7 @@ impl clean::GenericArgs {
                 clean::GenericArgs::Parenthesized { inputs, output } => {
                     f.write_str("(")?;
                     let mut comma = false;
-                    for ty in &inputs[..] {
+                    for ty in inputs.iter() {
                         if comma {
                             f.write_str(", ")?;
                         }