(hex: &str)
| 162 | } |
| 163 | |
| 164 | fn decode_hex(hex: &str) -> Vec<u8> { |
| 165 | (0..hex.len()) |
| 166 | .step_by(2) |
| 167 | .map(|index| u8::from_str_radix(&hex[index..index + 2], 16).unwrap()) |
| 168 | .collect() |
| 169 | } |
| 170 | |
| 171 | fn tagged(hex: &str) -> GitObjectId { |
| 172 | let algorithm = match hex.len() { |
no test coverage detected