reth icon indicating copy to clipboard operation
reth copied to clipboard

Remove unsafe from `impl Compact for ClientVersion`

Open DaniPopes opened this issue 1 year ago • 2 comments
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

DaniPopes avatar Sep 27 '24 16:09 DaniPopes