Browse Source

Place private constructor module behind serde feature gate, as it is only used within the serde module.

mitchmindtree 8 years ago
parent
commit
0c9077fa14
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/sampler.rs

+ 1 - 0
src/sampler.rs

@@ -251,6 +251,7 @@ impl<M, NFG, A> Sampler<M, NFG, A>
 }
 
 
+#[cfg(feature="serde_serialization")]
 pub mod private {
     use instrument::{self, Instrument};
     use map::{self, Map};