Rename fmt to format

This commit is contained in:
Hugo Duncan
2015-04-30 16:43:33 -04:00
parent a935ebe8b9
commit c30311153c
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -616,7 +616,7 @@ fn deserialize_field_visitor(
.collect();
quote_expr!(cx,
match D::fmt() {
match D::format() {
$fmt_matches,
_ => match value {
$default_field_arms,
+1 -1
View File
@@ -533,7 +533,7 @@ fn serialize_struct_visitor<I>(
.collect::<Vec<_>>();
quote_expr!(cx,
{
match S::fmt() {
match S::format() {
$arms,
_ => $default
}
+1 -1
View File
@@ -114,7 +114,7 @@ pub trait Deserializer {
self.visit(visitor)
}
fn fmt() -> &'static str {
fn format() -> &'static str {
""
}
}
+1 -1
View File
@@ -465,7 +465,7 @@ impl<Iter> de::Deserializer for Deserializer<Iter>
}
#[inline]
fn fmt() -> &'static str {
fn format() -> &'static str {
"json"
}
}
+1 -1
View File
@@ -258,7 +258,7 @@ impl<W, F> ser::Serializer for Serializer<W, F>
}
#[inline]
fn fmt() -> &'static str {
fn format() -> &'static str {
"json"
}
}
+2 -2
View File
@@ -573,7 +573,7 @@ impl ser::Serializer for Serializer {
}
#[inline]
fn fmt() -> &'static str {
fn format() -> &'static str {
"value"
}
}
@@ -684,7 +684,7 @@ impl de::Deserializer for Deserializer {
}
#[inline]
fn fmt() -> &'static str {
fn format() -> &'static str {
"value"
}
}
+1 -1
View File
@@ -180,7 +180,7 @@ pub trait Serializer {
where K: Serialize,
V: Serialize;
fn fmt() -> &'static str {
fn format() -> &'static str {
""
}
}