(
entry: &atomic_core::pristine::VaultEntry,
)
| 667 | } |
| 668 | |
| 669 | fn parse_frontmatter( |
| 670 | entry: &atomic_core::pristine::VaultEntry, |
| 671 | ) -> Result<Map<String, Value>, Status> { |
| 672 | serde_json::from_str(&entry.frontmatter_json).map_err(|error| { |
| 673 | domain_status( |
| 674 | ErrorCode::Repository, |
| 675 | format!("vault frontmatter is not valid JSON: {error}"), |
| 676 | ) |
| 677 | }) |
| 678 | } |
| 679 | |
| 680 | fn body_of(entry: &atomic_core::pristine::VaultEntry) -> String { |
| 681 | String::from_utf8_lossy(&entry.content_bytes).into_owned() |
no test coverage detected