mirror of https://git.sr.ht/~stygianentity/bincode
`char` in rust is 32-bits long, but is encoded using utf-8. Previously, bincode would assume the worst and say that chars are 4-bytes long always, when in reality, they are often only 1 byte long. This commit fixes that bug, adds a test for it, and does some general cleanup in the library. |
||
|---|---|---|
| .. | ||
| basic.rs | ||
| file.rs | ||