diff --git a/src/git_operations.rs b/src/git_operations.rs index 785f7b8..89d7039 100644 --- a/src/git_operations.rs +++ b/src/git_operations.rs @@ -43,8 +43,8 @@ impl GitOperations { } } - fn parse_response(response: Vec) -> Result> { - let tree: Vec = serde_json::from_slice(&response)?; + fn parse_response(response: &[u8]) -> Result> { + let tree: Vec = serde_json::from_slice(response)?; let re = Regex::new(r"/[^/]+$")?; // We don't know how many plugins there are, so we'll just allocate the max possible based on the number of files