mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-06 04:27:56 +00:00
Rename fmt to format
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ pub trait Deserializer {
|
||||
self.visit(visitor)
|
||||
}
|
||||
|
||||
fn fmt() -> &'static str {
|
||||
fn format() -> &'static str {
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -465,7 +465,7 @@ impl<Iter> de::Deserializer for Deserializer<Iter>
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn fmt() -> &'static str {
|
||||
fn format() -> &'static str {
|
||||
"json"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
@@ -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
@@ -180,7 +180,7 @@ pub trait Serializer {
|
||||
where K: Serialize,
|
||||
V: Serialize;
|
||||
|
||||
fn fmt() -> &'static str {
|
||||
fn format() -> &'static str {
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user