diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:54:26 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:54:26 +0000 |
commit | 0a8c08ca4406c977c6923dfe4314360c28fe5227 (patch) | |
tree | 920f690346620be8f3e538141249f6331fa01d4e /src/lib.rs | |
parent | 010f03ae1068769df703c5ba84004d5579728652 (diff) | |
parent | 9d69f56f4e1fde5260b6d129c57b30af15037a10 (diff) | |
download | async-task-0a8c08ca4406c977c6923dfe4314360c28fe5227.tar.gz |
Snap for 10453563 from 9d69f56f4e1fde5260b6d129c57b30af15037a10 to mainline-media-swcodec-releaseaml_swc_341711000aml_swc_341619000aml_swc_341513600aml_swc_341312300aml_swc_341312020aml_swc_341111000aml_swc_341011020aml_swc_340922010android14-mainline-media-swcodec-release
Change-Id: I9834050046331edaf2685f471a22b2fb6e18ed5c
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -74,6 +74,17 @@ extern crate alloc; +/// We can't use `?` in const contexts yet, so this macro acts +/// as a workaround. +macro_rules! leap { + ($x: expr) => {{ + match ($x) { + Some(val) => val, + None => return None, + } + }}; +} + mod header; mod raw; mod runnable; |