(bytes: Vec<u8>)
| 8 | } |
| 9 | |
| 10 | pub(crate) fn utf8(bytes: Vec<u8>) -> NetResult<String> { |
| 11 | String::from_utf8(bytes).map_err(|err: FromUtf8Error| { |
| 12 | NetError::new(NetErrorKind::Handshake, format!("invalid utf8: {err}")) |
| 13 | }) |
| 14 | } |
no outgoing calls
no test coverage detected