about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving
diff options
context:
space:
mode:
authorJoshua Landau <joshua@landau.ws>2015-06-11 13:56:07 +0100
committerJoshua Landau <joshua@landau.ws>2015-06-11 13:56:07 +0100
commitd7f5fa4636b12c3dadd626e708ec7cef654faf54 (patch)
tree26d1cae1de4f3b8d179cf008e380b6396bd9070f /src/libsyntax/ext/deriving
parentca7418b84658fc1c723672c462aa0a7878d88b64 (diff)
downloadrust-d7f5fa4636b12c3dadd626e708ec7cef654faf54.tar.gz
rust-d7f5fa4636b12c3dadd626e708ec7cef654faf54.zip
Conver reborrows to .iter() calls where appropriate
Diffstat (limited to 'src/libsyntax/ext/deriving')
-rw-r--r--src/libsyntax/ext/deriving/generic/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/deriving/generic/mod.rs b/src/libsyntax/ext/deriving/generic/mod.rs
index 3c432739111..ec3006898f3 100644
--- a/src/libsyntax/ext/deriving/generic/mod.rs
+++ b/src/libsyntax/ext/deriving/generic/mod.rs
@@ -505,7 +505,7 @@ impl<'a> TraitDef<'a> {
             bounds.push(cx.typarambound(trait_path.clone()));
 
             // also add in any bounds from the declaration
-            for declared_bound in &*ty_param.bounds {
+            for declared_bound in ty_param.bounds.iter() {
                 bounds.push((*declared_bound).clone());
             }