浏览代码

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

mitchmindtree 8 年之前
父节点
当前提交
0c9077fa14
共有 1 个文件被更改,包括 1 次插入0 次删除
  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};