From a857bca9ead36ecd7e1ac867cffd17db347614d6 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Sun, 9 Dec 2018 01:05:22 -0600 Subject: [PATCH] Fix clippy warnings manual implementation of an assign operation --- src/apis/emscripten/syscalls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apis/emscripten/syscalls.rs b/src/apis/emscripten/syscalls.rs index 6bd800b10..c47209b7a 100644 --- a/src/apis/emscripten/syscalls.rs +++ b/src/apis/emscripten/syscalls.rs @@ -592,7 +592,7 @@ pub extern "C" fn ___syscall145( if curr < 0 { return -1 } - ret = ret + curr; + ret += curr; } // debug!(" => ret: {}", ret); ret @@ -628,7 +628,7 @@ pub extern "C" fn ___syscall146( if curr < 0 { return -1 } - ret = ret + curr; + ret += curr; } // debug!(" => ret: {}", ret); ret