reth
reth copied to clipboard
Remove unsafe from `impl Compact for ClientVersion`
trafficstars
Describe the feature
Remove unsafe calls to String::from_utf8_unchecked in impl Compact for ClientVersion.
Done by implementing Compact for String, and using String::from_compact instead.
The compact implementation should just delegate to Vec<u8> and call String::from_utf8().unwrap()
Additional context
No response