@samitouri / QOS-React-1 / commits / fd873e8ddd

Rust: add stub for ensure_sufficient_stack (#2943)

Jan Kassens committed May 7, 2024 at 15:41 UTC fd873e8ddd2d6aee88c8fea490a8f34280ac6069
1 file changed +10
compiler/crates/react_utils/src/ensure_sufficient_stack.rs new
+10
@@ -0,0 +1,10 @@
1 +/*
2 + * Copyright (c) Meta Platforms, Inc. and affiliates.
3 + *
4 + * This source code is licensed under the MIT license found in the
5 + * LICENSE file in the root directory of this source tree.
6 + */
7 +
8 +pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R {
9 + f()
10 +}