MCPcopy Create free account
hub / github.com/SorellaLabs/cex-exchanges / write_json

Function write_json

tests/utils.rs:112–121  ·  view source on GitHub ↗
(a: D, path: &str)

Source from the content-addressed store, hash-verified

110}
111
112pub fn write_json<D>(a: D, path: &str)
113where
114 D: Serialize,
115{
116 use std::io::Write;
117
118 let mut f0 = std::fs::File::create(path).unwrap();
119
120 writeln!(f0, "{}", serde_json::to_string(&a).unwrap()).unwrap();
121}
122
123pub fn init_test_tracing() {
124 let data_filter = EnvFilter::builder()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected