Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 832a5a1

Browse files
committed
std::fmt::Default → Show (rust-lang/rust#11948).
1 parent 885e7fc commit 832a5a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/codegen/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl ToStr for Status {
243243
}
244244
}
245245
246-
impl fmt::Default for Status {
246+
impl fmt::Show for Status {
247247
fn fmt(s: &Status, f: &mut fmt::Formatter) {
248248
write!(f.buf, \"{} {}\", s.code(), s.reason());
249249
}

src/http/method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl FromStr for Method {
6262
}
6363
}
6464

65-
impl fmt::Default for Method {
65+
impl fmt::Show for Method {
6666
fn fmt(s: &Method, f: &mut fmt::Formatter) {
6767
f.buf.write(match *s {
6868
Options => "OPTIONS".as_bytes(),

0 commit comments

Comments
 (0)