std: rename fmt::Default to Show.

This is a better name with which to have a #[deriving] mode.

Decision in:
https://github.com/mozilla/rust/wiki/Meeting-weekly-2014-01-28
This commit is contained in:
Huon Wilson
2014-01-30 00:46:37 +11:00
parent 2bcd951749
commit 003ce50235
14 changed files with 75 additions and 56 deletions

View File

@@ -24,7 +24,7 @@ pub struct Page<'a> {
root_path: &'a str,
}
pub fn render<T: fmt::Default, S: fmt::Default>(
pub fn render<T: fmt::Show, S: fmt::Show>(
dst: &mut io::Writer, layout: &Layout, page: &Page, sidebar: &S, t: &T)
{
write!(dst,