From 8105ae8f6c1e4fde641716521b327eb07cf648cc Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 5 Mar 2016 20:04:37 -0800 Subject: [PATCH] Conditionally compile String and Vec impls --- phf_shared/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phf_shared/src/lib.rs b/phf_shared/src/lib.rs index c8fc0299..8f8a6f62 100644 --- a/phf_shared/src/lib.rs +++ b/phf_shared/src/lib.rs @@ -60,6 +60,7 @@ pub trait PhfHash { } } +#[cfg(not(feature = "core"))] impl PhfHash for String { #[inline] fn phf_hash(&self, state: &mut H) { @@ -67,6 +68,7 @@ impl PhfHash for String { } } +#[cfg(not(feature = "core"))] impl PhfHash for Vec { #[inline] fn phf_hash(&self, state: &mut H) {