Remove unnecessary references to Debug
This commit is contained in:
parent
21567b7518
commit
bcdcc3c148
@ -154,7 +154,7 @@ Here's an more complete example of working with Rust. First the example, then w
|
||||
extern crate rhai;
|
||||
use rhai::{Engine, FnRegister};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Clone)]
|
||||
struct TestStruct {
|
||||
x: i32
|
||||
}
|
||||
@ -186,7 +186,7 @@ fn main() {
|
||||
First, for each type we use with the engine, we need to be able to Clone. This allows the engine to pass by value and still keep its own state.
|
||||
|
||||
```Rust
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Clone)]
|
||||
struct TestStruct {
|
||||
x: i32
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user