proxmox-sys: fix a warning in io_bail_last macro

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-11-29 11:29:24 +01:00
parent 6679005b4f
commit 3891953724

View File

@ -14,9 +14,9 @@ macro_rules! io_format_err {
/// This is effectively `return Err(::std::io::Error::last_os_error().into());`. /// This is effectively `return Err(::std::io::Error::last_os_error().into());`.
#[macro_export] #[macro_export]
macro_rules! io_bail_last { macro_rules! io_bail_last {
() => { () => {{
return Err(::std::io::Error::last_os_error().into()); return Err(::std::io::Error::last_os_error().into());
}; }};
} }
/// Like anyhow's `bail` but producing a `std::io::Error`. /// Like anyhow's `bail` but producing a `std::io::Error`.