stakwork / sphinx-rs

Rust crates for Sphinx Chat
0 stars 0 forks source link

small detail: serialize_bin #27

Closed Evanfeenstra closed 11 months ago

Evanfeenstra commented 11 months ago

serialize_bin doesn't need to take a Vec<u8>, it can just take the &[u8] directly

Then all the places that call serialize_bin don't need to do to_vec(), should make things a bit more efficient