@@ -731,7 +731,7 @@ pub fn configure(opts: Options) -> Cargo {
731731 need_dir(&c.bindir);
732732
733733 for sources.each_key_ref |&k| {
734- let mut s = sources.get(k);
734+ let mut s = sources.get(& k);
735735 load_source_packages(&c, s);
736736 sources.insert(k, s);
737737 }
@@ -981,7 +981,7 @@ pub fn install_named(c: &mut Cargo, wd: &Path, name: ~str) {
981981
982982pub fn install_uuid_specific(c: &mut Cargo, wd: &Path, src: ~str,
983983 uuid: ~str) {
984- match c.sources.find(src) {
984+ match c.sources.find(& src) {
985985 Some(s) => {
986986 for s.packages.each |p| {
987987 if p.uuid == uuid {
@@ -997,7 +997,7 @@ pub fn install_uuid_specific(c: &mut Cargo, wd: &Path, src: ~str,
997997
998998pub fn install_named_specific(c: &mut Cargo, wd: &Path, src: ~str,
999999 name: ~str) {
1000- match c.sources.find(src) {
1000+ match c.sources.find(& src) {
10011001 Some(s) => {
10021002 for s.packages.each |p| {
10031003 if p.name == name {
@@ -1064,7 +1064,7 @@ pub fn cmd_uninstall(c: &Cargo) {
10641064}
10651065
10661066pub fn install_query(c: &mut Cargo, wd: &Path, target: ~str) {
1067- match c.dep_cache.find(target) {
1067+ match c.dep_cache.find(& target) {
10681068 Some(inst) => {
10691069 if inst {
10701070 return;
@@ -1156,7 +1156,7 @@ pub fn cmd_install(c: &mut Cargo) {
11561156
11571157pub fn sync(c: &Cargo) {
11581158 for c.sources.each_key_ref |&k| {
1159- let mut s = c.sources.get(k);
1159+ let mut s = c.sources.get(& k);
11601160 sync_one(c, s);
11611161 c.sources.insert(k, s);
11621162 }
@@ -1558,7 +1558,7 @@ pub fn cmd_list(c: &Cargo) {
15581558 if !valid_pkg_name(*name) {
15591559 error(fmt!("'%s' is an invalid source name", *name));
15601560 } else {
1561- match c.sources.find(* name) {
1561+ match c.sources.find(name) {
15621562 Some(source) => {
15631563 print_source(source);
15641564 }
@@ -1754,7 +1754,7 @@ pub fn cmd_sources(c: &Cargo) {
17541754 return;
17551755 }
17561756
1757- match c.sources.find(name) {
1757+ match c.sources.find(& name) {
17581758 Some(source) => {
17591759 let old = copy source.url;
17601760 let method = assume_source_method(url);
@@ -1785,7 +1785,7 @@ pub fn cmd_sources(c: &Cargo) {
17851785 return;
17861786 }
17871787
1788- match c.sources.find(name) {
1788+ match c.sources.find(& name) {
17891789 Some(source) => {
17901790 let old = copy source.method;
17911791
@@ -1823,7 +1823,7 @@ pub fn cmd_sources(c: &Cargo) {
18231823 return;
18241824 }
18251825
1826- match c.sources.find(name) {
1826+ match c.sources.find(& name) {
18271827 Some(source) => {
18281828 c.sources.remove(&name);
18291829 c.sources.insert(newn, source);
0 commit comments