about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJoshua Landau <joshua@landau.ws>2015-06-10 17:22:20 +0100
committerJoshua Landau <joshua@landau.ws>2015-06-10 21:14:03 +0100
commitca7418b84658fc1c723672c462aa0a7878d88b64 (patch)
tree6fba2849520c8c205c53ca12aaa8445eb8e03ab9 /src/liballoc
parentd8a9570154dfbc4032cb3a6ba8b51c6256518dcd (diff)
downloadrust-ca7418b84658fc1c723672c462aa0a7878d88b64.tar.gz
rust-ca7418b84658fc1c723672c462aa0a7878d88b64.zip
Removed many pointless calls to *iter() and iter_mut()
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/rc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 906a41a4d53..6a9b41c0fe4 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -130,7 +130,7 @@
 //!     gadget_owner.gadgets.borrow_mut().push(gadget2.clone().downgrade());
 //!
 //!     // Iterate over our Gadgets, printing their details out
-//!     for gadget_opt in gadget_owner.gadgets.borrow().iter() {
+//!     for gadget_opt in &*gadget_owner.gadgets.borrow() {
 //!
 //!         // gadget_opt is a Weak<Gadget>. Since weak pointers can't guarantee
 //!         // that their object is still allocated, we need to call upgrade()