mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 13:27:43 +00:00
@@ -2,7 +2,8 @@ pub mod error;
|
||||
pub mod globals;
|
||||
|
||||
/// Defers evaluation of a block of code until the end of the scope.
|
||||
#[macro_export] macro_rules! defer {
|
||||
#[macro_export]
|
||||
macro_rules! defer {
|
||||
($($body:tt)*) => {
|
||||
let _guard = {
|
||||
pub struct Guard<F: FnOnce()>(Option<F>);
|
||||
|
||||
Reference in New Issue
Block a user