about summary refs log tree commit diff
path: root/src/libstd/num
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2013-12-23 17:45:01 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-01-21 15:48:48 -0800
commit05ae134acebee3f35af4880de113a7ae7ce20002 (patch)
tree096daf1c7c42bd04ac3d1f11f710fd9786d9937a /src/libstd/num
parentb8c41492939c77b7139e46ee67375b47041f6692 (diff)
downloadrust-05ae134acebee3f35af4880de113a7ae7ce20002.tar.gz
rust-05ae134acebee3f35af4880de113a7ae7ce20002.zip
[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior
Diffstat (limited to 'src/libstd/num')
-rw-r--r--src/libstd/num/strconv.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs
index 5c35c500e6c..bf9e6b739f2 100644
--- a/src/libstd/num/strconv.rs
+++ b/src/libstd/num/strconv.rs
@@ -427,7 +427,7 @@ pub fn float_to_str_common<T:NumCast+Zero+One+Eq+Ord+NumStrConv+Float+Round+
         sign: SignFormat, digits: SignificantDigits) -> (~str, bool) {
     let (bytes, special) = float_to_str_bytes_common(num, radix,
                                negative_zero, sign, digits);
-    (str::from_utf8_owned(bytes), special)
+    (str::from_utf8_owned(bytes).unwrap(), special)
 }
 
 // Some constants for from_str_bytes_common's input validation,