From fd873e8ddd2d6aee88c8fea490a8f34280ac6069 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Tue, 7 May 2024 15:41:03 -0400 Subject: [PATCH] Rust: add stub for ensure_sufficient_stack (#2943) --- .../crates/react_utils/src/ensure_sufficient_stack.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 compiler/crates/react_utils/src/ensure_sufficient_stack.rs diff --git a/compiler/crates/react_utils/src/ensure_sufficient_stack.rs b/compiler/crates/react_utils/src/ensure_sufficient_stack.rs new file mode 100644 index 0000000000..9124b46c80 --- /dev/null +++ b/compiler/crates/react_utils/src/ensure_sufficient_stack.rs @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +pub fn ensure_sufficient_stack(f: impl FnOnce() -> R) -> R { + f() +}