Fix build and all tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
extern crate rhai;
|
||||
use rhai::{Engine, FnRegister};
|
||||
use rhai::{Engine, RegisterFn};
|
||||
|
||||
#[derive(Clone)]
|
||||
struct TestStruct {
|
||||
|
@@ -3,7 +3,7 @@ extern crate rhai;
|
||||
use std::fmt::Display;
|
||||
use std::process::exit;
|
||||
use std::io::{stdin, stdout, Write};
|
||||
use rhai::{Engine, FnRegister, Scope};
|
||||
use rhai::{Engine, RegisterFn, Scope};
|
||||
|
||||
fn showit<T: Display>(x: &mut T) -> () {
|
||||
println!("{}", x)
|
||||
|
@@ -2,7 +2,7 @@ use std::env;
|
||||
use std::fmt::Display;
|
||||
|
||||
extern crate rhai;
|
||||
use rhai::{Engine, FnRegister};
|
||||
use rhai::{Engine, RegisterFn};
|
||||
|
||||
fn showit<T: Display>(x: &mut T) -> () {
|
||||
println!("{}", x)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
extern crate rhai;
|
||||
use rhai::{Any, Engine, RegisterFn};
|
||||
use rhai::{Engine, RegisterFn};
|
||||
|
||||
fn add(x: i64, y: i64) -> i64 {
|
||||
x + y
|
||||
|
Reference in New Issue
Block a user