Skip to content

Commit

Permalink
feat: update rust-scopeguard repo
Browse files Browse the repository at this point in the history
Defines the macros defer!, defer_on_unwind!, defer_on_success! as shorthands for guards with one of the implemented strategies.

Log: add rust-scopeguard
Issue: deepin-community/sig-deepin-sysdev-team#70
  • Loading branch information
ryanhigh committed Jul 4, 2023
1 parent ffd62ed commit a643263
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ scopeguard
==========

Rust crate for a convenient RAII scope guard that will run a given closure when
it goes out of scope, even if the code between panics (assuming unwinding panic).
it goes out of scope, even if the codes between panics (assuming unwinding panic).

The `defer!` macro and `guard` are `no_std` compatible (require only core),
but the on unwinding / not on uwinding strategies requires linking to `std`.
Expand Down Expand Up @@ -101,3 +101,4 @@ Recent Changes
- 0.1.2

- Add macro ``defer!()``

0 comments on commit a643263

Please sign in to comment.