@@ -731,7 +731,7 @@ pub fn configure(opts: Options) -> Cargo {
731
731
need_dir(&c.bindir);
732
732
733
733
for sources.each_key_ref |&k| {
734
- let mut s = sources.get(k);
734
+ let mut s = sources.get(& k);
735
735
load_source_packages(&c, s);
736
736
sources.insert(k, s);
737
737
}
@@ -981,7 +981,7 @@ pub fn install_named(c: &mut Cargo, wd: &Path, name: ~str) {
981
981
982
982
pub fn install_uuid_specific(c: &mut Cargo, wd: &Path, src: ~str,
983
983
uuid: ~str) {
984
- match c.sources.find(src) {
984
+ match c.sources.find(& src) {
985
985
Some(s) => {
986
986
for s.packages.each |p| {
987
987
if p.uuid == uuid {
@@ -997,7 +997,7 @@ pub fn install_uuid_specific(c: &mut Cargo, wd: &Path, src: ~str,
997
997
998
998
pub fn install_named_specific(c: &mut Cargo, wd: &Path, src: ~str,
999
999
name: ~str) {
1000
- match c.sources.find(src) {
1000
+ match c.sources.find(& src) {
1001
1001
Some(s) => {
1002
1002
for s.packages.each |p| {
1003
1003
if p.name == name {
@@ -1064,7 +1064,7 @@ pub fn cmd_uninstall(c: &Cargo) {
1064
1064
}
1065
1065
1066
1066
pub fn install_query(c: &mut Cargo, wd: &Path, target: ~str) {
1067
- match c.dep_cache.find(target) {
1067
+ match c.dep_cache.find(& target) {
1068
1068
Some(inst) => {
1069
1069
if inst {
1070
1070
return;
@@ -1156,7 +1156,7 @@ pub fn cmd_install(c: &mut Cargo) {
1156
1156
1157
1157
pub fn sync(c: &Cargo) {
1158
1158
for c.sources.each_key_ref |&k| {
1159
- let mut s = c.sources.get(k);
1159
+ let mut s = c.sources.get(& k);
1160
1160
sync_one(c, s);
1161
1161
c.sources.insert(k, s);
1162
1162
}
@@ -1558,7 +1558,7 @@ pub fn cmd_list(c: &Cargo) {
1558
1558
if !valid_pkg_name(*name) {
1559
1559
error(fmt!("'%s' is an invalid source name", *name));
1560
1560
} else {
1561
- match c.sources.find(* name) {
1561
+ match c.sources.find(name) {
1562
1562
Some(source) => {
1563
1563
print_source(source);
1564
1564
}
@@ -1754,7 +1754,7 @@ pub fn cmd_sources(c: &Cargo) {
1754
1754
return;
1755
1755
}
1756
1756
1757
- match c.sources.find(name) {
1757
+ match c.sources.find(& name) {
1758
1758
Some(source) => {
1759
1759
let old = copy source.url;
1760
1760
let method = assume_source_method(url);
@@ -1785,7 +1785,7 @@ pub fn cmd_sources(c: &Cargo) {
1785
1785
return;
1786
1786
}
1787
1787
1788
- match c.sources.find(name) {
1788
+ match c.sources.find(& name) {
1789
1789
Some(source) => {
1790
1790
let old = copy source.method;
1791
1791
@@ -1823,7 +1823,7 @@ pub fn cmd_sources(c: &Cargo) {
1823
1823
return;
1824
1824
}
1825
1825
1826
- match c.sources.find(name) {
1826
+ match c.sources.find(& name) {
1827
1827
Some(source) => {
1828
1828
c.sources.remove(&name);
1829
1829
c.sources.insert(newn, source);
0 commit comments