From 196e145c960611737e6d229199255d65ebc712d5 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 23 Aug 2020 16:29:32 +0800 Subject: [PATCH] Derive standard traits for Limits. --- src/engine.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine.rs b/src/engine.rs index 5c4fdaee..70e93568 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -340,6 +340,7 @@ pub fn get_script_function_by_signature<'a>( /// /// This type is volatile and may change. #[cfg(not(feature = "unchecked"))] +#[derive(Debug, Clone, Eq, PartialEq, Hash)] pub struct Limits { /// Maximum levels of call-stack to prevent infinite recursion. /// @@ -377,6 +378,7 @@ pub struct Limits { /// ``` /// /// Currently, `Engine` is neither `Send` nor `Sync`. Use the `sync` feature to make it `Send + Sync`. +#[derive(Clone)] pub struct Engine { /// A unique ID identifying this scripting `Engine`. pub id: Option,