Skip to content

Commit b381ace

Browse files
committed
Fix for language changes.
1 parent 1f9e299 commit b381ace

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/examples/server/request_uri/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Server for RequestUriServer {
6666
w.write(bytes!("<!DOCTYPE html><title>Rust HTTP server</title>"));
6767

6868
match r.request_uri {
69-
Star | Authority(*) => {
69+
Star | Authority(_) => {
7070
w.status = BadRequest;
7171
// Actually, valid for the CONNECT method.
7272
},

src/http/client/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl<S: Reader + Writer> RequestWriter<S> {
120120
let addrs = addrs.unwrap();
121121
let addr = addrs.move_iter().find(|&a| {
122122
match a {
123-
Ipv4Addr(*) => true,
123+
Ipv4Addr(..) => true,
124124
_ => false
125125
}
126126
});

src/http/headers/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -708,17 +708,17 @@ impl HeaderConvertible for Tm {
708708
// XXX: %Z actually ignores any timezone other than UTC. Probably not a good idea?
709709
match strptime(value, "%a, %d %b %Y %T %Z") { // RFC 822, updated by RFC 1123
710710
Ok(time) => return Some(time),
711-
Err(*) => ()
711+
Err(_) => ()
712712
}
713713

714714
match strptime(value, "%A, %d-%b-%y %T %Z") { // RFC 850, obsoleted by RFC 1036
715715
Ok(time) => return Some(time),
716-
Err(*) => ()
716+
Err(_) => ()
717717
}
718718

719719
match strptime(value, "%c") { // ANSI C's asctime() format
720720
Ok(time) => Some(time),
721-
Err(*) => None
721+
Err(_) => None
722722
}
723723
}
724724

@@ -958,7 +958,7 @@ macro_rules! headers_mod {
958958
fn header_name(&self) -> ~str {
959959
match *self {
960960
// FIXME: $output_name is "...", I want ~"..." rather than "...".to_owned()
961-
$($caps_ident(*) => $output_name.to_owned(),)*
961+
$($caps_ident(_) => $output_name.to_owned(),)*
962962
ExtensionHeader(ref name, _) => name.to_owned(),
963963
}
964964
}
@@ -990,14 +990,14 @@ macro_rules! headers_mod {
990990
}
991991

992992
writer.write(match *self {
993-
$($caps_ident(*) => bytes!($output_name, ": "),)*
994-
ExtensionHeader(*) => unreachable!(), // Already returned
993+
$($caps_ident(_) => bytes!($output_name, ": "),)*
994+
ExtensionHeader(..) => unreachable!(), // Already returned
995995
});
996996

997997
// FIXME: all the `h` cases satisfy HeaderConvertible, can it be simplified?
998998
match *self {
999999
$($caps_ident(ref h) => h.to_stream(writer),)*
1000-
ExtensionHeader(*) => unreachable!(), // Already returned
1000+
ExtensionHeader(..) => unreachable!(), // Already returned
10011001
};
10021002
writer.write(bytes!("\r\n"));
10031003
}

0 commit comments

Comments
 (0)