mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 05:22:00 +00:00
proxmox-sys: fix a warning in io_bail_last macro
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
6679005b4f
commit
3891953724
@ -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`.
|
||||||
|
Loading…
Reference in New Issue
Block a user