From 421b2ba347a3a1afa41b91f4254f238c790fd73b Mon Sep 17 00:00:00 2001 From: ljedrz Date: Sat, 28 Jul 2018 14:40:32 +0200 Subject: Don't format!() string literals --- src/libstd/sys/wasm/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/sys') diff --git a/src/libstd/sys/wasm/os.rs b/src/libstd/sys/wasm/os.rs index 23ca1754719..0cb991e19b0 100644 --- a/src/libstd/sys/wasm/os.rs +++ b/src/libstd/sys/wasm/os.rs @@ -21,7 +21,7 @@ pub fn errno() -> i32 { } pub fn error_string(_errno: i32) -> String { - format!("operation successful") + "operation successful".to_string() } pub fn getcwd() -> io::Result { -- cgit 1.4.1-3-g733a5