(repo: &Repository, path: &str, receipt: &Receipt)
| 176 | } |
| 177 | |
| 178 | fn store(repo: &Repository, path: &str, receipt: &Receipt) -> Result<(), Status> { |
| 179 | repo.vault_store( |
| 180 | path, |
| 181 | VaultEntryType::ToolResult, |
| 182 | serde_json::to_vec(receipt).map_err(|error| Status::internal(error.to_string()))?, |
| 183 | "{}".into(), |
| 184 | ) |
| 185 | .map(|_| ()) |
| 186 | .map_err(repository_error) |
| 187 | } |
no test coverage detected