fix a warning in io_return macro

newer compilers warn about the semicolon there, so put
braces around it

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-11-29 11:26:24 +01:00
parent e25982f24e
commit 73fba2edea
1 changed files with 2 additions and 2 deletions

View File

@ -105,9 +105,9 @@ impl Future for Session {
/// We use this to return an errno value back to the kernel. /// We use this to return an errno value back to the kernel.
macro_rules! io_return { macro_rules! io_return {
($errno:expr) => { ($errno:expr) => {{
return Err(::std::io::Error::from_raw_os_error($errno).into()); return Err(::std::io::Error::from_raw_os_error($errno).into());
}; }};
} }
/// Format an "other" error, see `io_bail` below for details. /// Format an "other" error, see `io_bail` below for details.