(s: &str)
| 521 | } |
| 522 | |
| 523 | fn hex_to_vec(s: &str) -> Vec<u8> { |
| 524 | let s: String = s.chars().filter(|c| !c.is_whitespace()).collect(); |
| 525 | (0..s.len()) |
| 526 | .step_by(2) |
| 527 | .map(|i| u8::from_str_radix(&s[i..i + 2], 16).unwrap()) |
| 528 | .collect() |
| 529 | } |
| 530 | } |
no outgoing calls