Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Rename IIFE to try
Mikayla Makibeb0af976331
diff --git a/crates/util/src/util.rs b/crates/util/src/util.rsindex 629f9500147..8bc0607f9dd 100644--- a/crates/util/src/util.rs+++ b/crates/util/src/util.rs@@ -352,7 +352,7 @@ pub fn unzip_option<T, U>(option: Option<(T, U)>) -> (Option<T>, Option<U>) {/// Immediately invoked function expression. Good for using the ? operator/// in functions which do not return an Option or Result#[macro_export]-macro_rules! iife {+macro_rules! try {($block:block) => {(|| $block)()};@@ -361,7 +361,7 @@ macro_rules! iife {/// Async Immediately invoked function expression. Good for using the ? operator/// in functions which do not return an Option or Result. Async version of above#[macro_export]-macro_rules! async_iife {+macro_rules! async_try {($block:block) => {(|| async move { $block })()};