Closed qy3u closed 2 years ago
Hi.Thanks for writting this great crate.After copy-paste-run the code in the readme, I got the error message blow:
b: Box::new(b"Hello, Wold!"), | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected slice `[u8]`, found `&[u8; 12]` |
so I just fix this error.Besides that, I also import std::mem::size_of in the example code. Whether to adopt the latter is up to you,but i think former should be fixed : )
std::mem::size_of
Sorry for not keeping up with this repository. Thank you for the fix!
Hi.Thanks for writting this great crate.After copy-paste-run the code in the readme, I got the error message blow:
so I just fix this error.Besides that, I also import
std::mem::size_of
in the example code. Whether to adopt the latter is up to you,but i think former should be fixed : )