diff --git a/src/hash.rs b/src/hash.rs index 866aebe..493ed68 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -46,11 +46,11 @@ where } } -impl ByteEncoder for S +impl ByteEncoder for V where - S: ToString, + V: Into> + Clone, { fn bytes(&self) -> Vec { - self.to_string().into_bytes() + >>::into(self.clone()) } }