From 05ae134acebee3f35af4880de113a7ae7ce20002 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 23 Dec 2013 17:45:01 +0100 Subject: [std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior --- src/libstd/num/strconv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/num') 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 (~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, -- cgit 1.4.1-3-g733a5