]> git.lizzy.rs Git - rust.git/commit
Change StrBuf::from_utf8() to return Result
authorKevin Ballard <kevin@sb.org>
Wed, 14 May 2014 23:55:24 +0000 (16:55 -0700)
committerKevin Ballard <kevin@sb.org>
Thu, 15 May 2014 00:35:55 +0000 (17:35 -0700)
commitba7844a7fff0061e5b4528c2ecd5adf765145b70
treebf1998a94512013b15d5216388b1d99db7b54935
parentd0f3cb05df41b14b58553fab6a533e0e4c947b06
Change StrBuf::from_utf8() to return Result

This allows the original vector to be recovered in the event that it is
not UTF-8.

[breaking-change]
src/libserialize/base64.rs
src/libserialize/hex.rs
src/libstd/num/strconv.rs
src/libstd/strbuf.rs