Skip to content

Commit 2c756e5

Browse files
committed
Add back Lua::load_from_std_lib (with deprecated flag)
1 parent c702077 commit 2c756e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/state.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,11 @@ impl Lua {
306306
R::from_stack_multi(nresults, &lua)
307307
}
308308

309-
// FIXME: Deprecated load_from_std_lib
309+
#[doc(hidden)]
310+
#[deprecated(since = "0.10.0", note = "please use `load_std_libs` instead")]
311+
pub fn load_from_std_lib(&self, libs: StdLib) -> Result<()> {
312+
self.load_std_libs(libs)
313+
}
310314

311315
/// Loads the specified subset of the standard libraries into an existing Lua state.
312316
///

0 commit comments

Comments
 (0)