From 2c4451e32bfe5033bbdd1b071b65604896fff319 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Arnaud Date: Thu, 24 May 2018 18:02:28 +0200 Subject: [PATCH] remove unused visitor string --- yaserde/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/yaserde/src/lib.rs b/yaserde/src/lib.rs index 1e6c702..cdcfad0 100644 --- a/yaserde/src/lib.rs +++ b/yaserde/src/lib.rs @@ -63,12 +63,6 @@ pub trait Visitor<'de>: Sized { fn visit_str(self, v: &str) -> Result { Err(format!("Unexpected str {:?}", v)) } - - #[inline] - #[cfg(any(feature = "std", feature = "alloc"))] - fn visit_string(self, v: String) -> Result { - self.visit_str(&v) - } } macro_rules! serialize_type {