mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-21 02:20:44 +08:00
Improve on the previous iteration of `Blob`. `BlobVec` is simply a `Vec<u8>` underneath, so it is technically not needed and can be replaced by using `Vec<u8>` directly. Notice that BlobRef can implement AsRef and Deref for `[u8]`. This leads to being able to use `T: AsRef<[u8]>` for `Blob` methods and the `Serialize` implementation. Apply these two facts and remove any of the remaining code that is no longer needed. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>