diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-03 11:22:37 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-07 10:12:04 +0100 |
commit | e4a572d253253c951a3af570802f7058fd1ab3a9 (patch) | |
tree | 6dd454b70c3b0d30a6ca42ac03ec35117259345c /crates/common/json_writer | |
parent | 757e0877c1d463d8f35e8ccb2e1f6bd7f2ed4fe0 (diff) |
Make Default impl for JsonWriter only for tests
This interface is not used outside of tests, so make it optional.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'crates/common/json_writer')
-rw-r--r-- | crates/common/json_writer/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/common/json_writer/src/lib.rs b/crates/common/json_writer/src/lib.rs index ada8a0c4..df92765b 100644 --- a/crates/common/json_writer/src/lib.rs +++ b/crates/common/json_writer/src/lib.rs @@ -21,6 +21,7 @@ pub enum JsonWriterError { InvalidF64Value { value: f64 }, } +#[cfg(test)] impl Default for JsonWriter { fn default() -> Self { Self { |