]> git.lizzy.rs Git - rust.git/commit
Implement FromBase64 for &[u8].
authorSimon Sapin <simon.sapin@exyr.org>
Sat, 19 Jul 2014 15:46:14 +0000 (16:46 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Sat, 19 Jul 2014 15:46:14 +0000 (16:46 +0100)
commit56218f5dfc3677be77bb52c0d298da2b12de99d3
treef8944348915ef525c71adfb76d04edf934f95cff
parente0a6e2b41421928206cc71be27da1239b4598ed1
Implement FromBase64 for &[u8].

The algorithm was already based on bytes internally.

Also use byte literals instead of casting u8 to char for matching.
src/libserialize/base64.rs