Deserialize bytes (JSON) to a list of conflicts.
(bytes: &[u8])
| 25 | |
| 26 | /// Deserialize bytes (JSON) to a list of conflicts. |
| 27 | pub fn deserialize_conflicts(bytes: &[u8]) -> PristineResult<Vec<StoredConflict>> { |
| 28 | serde_json::from_slice(bytes).map_err(|e| PristineError::Serialization { |
| 29 | message: format!("failed to deserialize conflicts: {e}"), |
| 30 | }) |
| 31 | } |
| 32 | |
| 33 | // Edge Serialization |
| 34 |
no outgoing calls
no test coverage detected