From 73fba2edea582315272451773f129fa8b57c6574 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 29 Nov 2021 11:26:24 +0100 Subject: [PATCH] fix a warning in io_return macro newer compilers warn about the semicolon there, so put braces around it Signed-off-by: Wolfgang Bumiller --- pbs-client/src/pxar/fuse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbs-client/src/pxar/fuse.rs b/pbs-client/src/pxar/fuse.rs index 8801c8f3..89847c0a 100644 --- a/pbs-client/src/pxar/fuse.rs +++ b/pbs-client/src/pxar/fuse.rs @@ -105,9 +105,9 @@ impl Future for Session { /// We use this to return an errno value back to the kernel. macro_rules! io_return { - ($errno:expr) => { + ($errno:expr) => {{ return Err(::std::io::Error::from_raw_os_error($errno).into()); - }; + }}; } /// Format an "other" error, see `io_bail` below for details.