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:
parent
e25982f24e
commit
73fba2edea
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user