diff options
author | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-03-31 12:46:24 +0200 |
---|---|---|
committer | Igor Matuszewski <xanewok@gmail.com> | 2020-03-31 11:10:44 +0000 |
commit | b51d93bd0074ac150f8c274ec5e3a8316c3d241b (patch) | |
tree | 936575c91e5c544d2f94252c1a1fb6a1b2023d3e | |
parent | 9b10a296ed797feb04a78d7fe4cee439b546b740 (diff) |
openpgp: Add a replacement note to destructures_to!
-rw-r--r-- | openpgp/src/macros.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/macros.rs b/openpgp/src/macros.rs index be771a43..9b9e84e2 100644 --- a/openpgp/src/macros.rs +++ b/openpgp/src/macros.rs @@ -7,6 +7,7 @@ use std::cmp; // if destructures_to(Foo::Bar(_) = value) // || destructures_to(Foo::Bam(_) = value) { ... } // ``` +// TODO: Replace with `std::matches!` once MSRV is bumped to 1.42. macro_rules! destructures_to { ( $error: pat = $expr:expr ) => { { |