I’m stuck on Stage #IC4.
I’ve tried decompressing a tree object type using zlib.
Here are my logs:
[tester::#KP1] Expected "dooby\nvanilla\nyikes\n" as stdout, got: ""
[tester::#KP1] Test failed
And here’s a snippet of my code:
let file_path = format!(
"./.git/objects/{}/{}",
first_two_letters, whats_left_from_file_name
);
let data = fs::read(file_path).unwrap();
let mut d = ZlibDecoder::new(data.as_slice());
let mut result = String::new();
d.read_to_string(&mut result);
result