From 89759de1d1a9dae15b4fa8ad46e885b57e604ce6 Mon Sep 17 00:00:00 2001 From: Allen Webb Date: Mon, 6 Dec 2021 16:17:58 -0600 Subject: [PATCH] sys_util: Remove extra semicolon to fix warning on nightly. Nightly rust generates errors of the following form: warning: trailing semicolon in macro used in expression position --> /home/allenwebb/external/NoBackup/chromiumos/src/platform/crosvm/common/sys_util/src/syslog.rs:193:10 | 188 | / macro_rules! lock { 189 | | () => { 190 | | match lock() { 191 | | Ok(s) => s, 192 | | _ => return, 193 | | }; | | ^ 194 | | }; 195 | | } | |_- in this expansion of `lock!` ... 336 | let mut state = lock!(); | ------- in this macro invocation | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #79813 BUG=None TEST=cargo test Change-Id: I323d5a4d88d1e2fe4b7745d3f49adef808ee7016 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3318767 Auto-Submit: Allen Webb Commit-Queue: Daniel Verkamp Tested-by: kokoro Reviewed-by: Daniel Verkamp --- common/sys_util/src/syslog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sys_util/src/syslog.rs b/common/sys_util/src/syslog.rs index 6da33db0d7..b2546b80a5 100644 --- a/common/sys_util/src/syslog.rs +++ b/common/sys_util/src/syslog.rs @@ -190,7 +190,7 @@ macro_rules! lock { match lock() { Ok(s) => s, _ => return, - }; + } }; }