Fix test.

This commit is contained in:
Stephen Chung 2020-10-28 22:30:35 +08:00
parent bed6364dcb
commit cbd7ed2ca7
5 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
11 | pub fn test_fn(input: f32) -> NonClonable {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
::: $WORKSPACE/src/any.rs
::: $WORKSPACE/src/dynamic.rs
|
| pub fn from<T: Variant + Clone>(value: T) -> Self {
| ----- required by this bound in `rhai::Dynamic::from`

View File

@ -4,7 +4,7 @@ error[E0277]: the trait bound `NonClonable: Clone` is not satisfied
12 | pub fn test_fn(input: f32) -> NonClonable {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `NonClonable`
|
::: $WORKSPACE/src/any.rs
::: $WORKSPACE/src/dynamic.rs
|
| pub fn from<T: Variant + Clone>(value: T) -> Self {
| ----- required by this bound in `rhai::Dynamic::from`

View File

@ -1,8 +1,8 @@
#![cfg(not(feature = "no_index"))]
#![allow(non_snake_case)]
use crate::dynamic::Dynamic;
use crate::def_package;
use crate::dynamic::Dynamic;
use crate::engine::Array;
use crate::fn_native::{FnPtr, NativeCallContext};
use crate::parser::{ImmutableString, INT};

View File

@ -1,5 +1,5 @@
use crate::dynamic::Dynamic;
use crate::def_package;
use crate::dynamic::Dynamic;
use crate::parser::ImmutableString;
use crate::plugin::*;
use crate::result::EvalAltResult;

View File

@ -1,5 +1,5 @@
use crate::dynamic::Variant;
use crate::def_package;
use crate::dynamic::Variant;
use crate::parser::INT;
use crate::result::EvalAltResult;