Remove unnecessary Debug trait from example
This commit is contained in:
parent
cfac566425
commit
21c3b625d7
@ -1,7 +1,7 @@
|
|||||||
extern crate rhai;
|
extern crate rhai;
|
||||||
use rhai::{Engine, FnRegister};
|
use rhai::{Engine, FnRegister};
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Clone)]
|
||||||
struct TestStruct {
|
struct TestStruct {
|
||||||
x: i32
|
x: i32
|
||||||
}
|
}
|
||||||
@ -27,4 +27,4 @@ fn main() {
|
|||||||
if let Ok(result) = engine.eval::<TestStruct>("var x = new_ts(); x.update(); x") {
|
if let Ok(result) = engine.eval::<TestStruct>("var x = new_ts(); x.update(); x") {
|
||||||
println!("result: {}", result.x); // prints 1001
|
println!("result: {}", result.x); // prints 1001
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user