(path: &Path, tmp_prefix: &str, value: &T)
| 28 | } |
| 29 | |
| 30 | pub fn atomic_write_json<T: serde::Serialize>(path: &Path, tmp_prefix: &str, value: &T) -> Result<()> { |
| 31 | let bytes = serde_json::to_vec_pretty(value)?; |
| 32 | atomic_write_bytes(path, tmp_prefix, &bytes) |
| 33 | } |
no test coverage detected
searching dependent graphs…