mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 15:48:00 +00:00
Remove the unused Serializer::Value associated type
This commit is contained in:
@@ -52,7 +52,6 @@ impl<W: io::Write> Serializer<W> {
|
||||
}
|
||||
|
||||
impl<W: io::Write> ser::Serializer for Serializer<W> {
|
||||
type Value = ();
|
||||
type Error = io::Error;
|
||||
|
||||
#[inline]
|
||||
@@ -117,7 +116,6 @@ impl<'a, W> Visitor<'a, W> where W: io::Write, {
|
||||
}
|
||||
|
||||
impl<'a, W> ser::Visitor for Visitor<'a, W> where W: io::Write, {
|
||||
type Value = ();
|
||||
type Error = io::Error;
|
||||
|
||||
#[inline]
|
||||
|
||||
+1
-3
@@ -21,7 +21,7 @@ pub enum Value {
|
||||
|
||||
impl ser::Serialize for Value {
|
||||
#[inline]
|
||||
fn visit<V>(&self, visitor: &mut V) -> Result<V::Value, V::Error>
|
||||
fn visit<V>(&self, visitor: &mut V) -> Result<(), V::Error>
|
||||
where V: ser::Visitor,
|
||||
{
|
||||
match *self {
|
||||
@@ -163,7 +163,6 @@ impl Serializer {
|
||||
}
|
||||
|
||||
impl ser::Serializer for Serializer {
|
||||
type Value = ();
|
||||
type Error = ();
|
||||
|
||||
#[inline]
|
||||
@@ -176,7 +175,6 @@ impl ser::Serializer for Serializer {
|
||||
}
|
||||
|
||||
impl ser::Visitor for Serializer {
|
||||
type Value = ();
|
||||
type Error = ();
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user