remove unused visitor string
This commit is contained in:
parent
c639259d89
commit
2c4451e32b
@ -63,12 +63,6 @@ pub trait Visitor<'de>: Sized {
|
|||||||
fn visit_str(self, v: &str) -> Result<Self::Value, String> {
|
fn visit_str(self, v: &str) -> Result<Self::Value, String> {
|
||||||
Err(format!("Unexpected str {:?}", v))
|
Err(format!("Unexpected str {:?}", v))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
#[cfg(any(feature = "std", feature = "alloc"))]
|
|
||||||
fn visit_string<String>(self, v: String) -> Result<Self::Value, String> {
|
|
||||||
self.visit_str(&v)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! serialize_type {
|
macro_rules! serialize_type {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user