Remove lifetime from Engine.

This commit is contained in:
Stephen Chung
2020-04-16 23:31:48 +08:00
parent 4f2350734f
commit f8e9d66a0b
8 changed files with 95 additions and 99 deletions

View File

@@ -94,7 +94,7 @@ fn ne<T: PartialEq>(x: T, y: T) -> bool {
x != y
}
impl Engine<'_> {
impl Engine {
/// Register the core built-in library.
pub(crate) fn register_core_lib(&mut self) {
// Checked add
@@ -770,7 +770,7 @@ macro_rules! reg_fn2y {
}
/// Register the built-in library.
impl Engine<'_> {
impl Engine {
pub fn register_stdlib(&mut self) {
#[cfg(not(feature = "no_float"))]
{