diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-05-14 16:55:24 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-05-14 17:35:55 -0700 |
| commit | ba7844a7fff0061e5b4528c2ecd5adf765145b70 (patch) | |
| tree | bf1998a94512013b15d5216388b1d99db7b54935 /src/libstd/num | |
| parent | d0f3cb05df41b14b58553fab6a533e0e4c947b06 (diff) | |
| download | rust-ba7844a7fff0061e5b4528c2ecd5adf765145b70.tar.gz rust-ba7844a7fff0061e5b4528c2ecd5adf765145b70.zip | |
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]
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/strconv.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs index 4769b17fb2b..63d6219ab8a 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -19,6 +19,7 @@ use num::{Float, FPNaN, FPInfinite, ToPrimitive}; use num; use ops::{Add, Sub, Mul, Div, Rem, Neg}; use option::{None, Option, Some}; +use result::ResultUnwrap; use slice::{CloneableVector, ImmutableVector, MutableVector}; use std::cmp::{Ord, Eq}; use str::{StrAllocating, StrSlice}; |
