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

View File

@ -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.