mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Rust: add stub for ensure_sufficient_stack (#2943)
This commit is contained in:
10
compiler/crates/react_utils/src/ensure_sufficient_stack.rs
Normal file
10
compiler/crates/react_utils/src/ensure_sufficient_stack.rs
Normal file
@@ -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<R>(f: impl FnOnce() -> R) -> R {
|
||||
f()
|
||||
}
|
||||
Reference in New Issue
Block a user