Fix build and all tests

This commit is contained in:
torkleyy
2017-12-20 21:09:53 +01:00
parent 3672414212
commit 348a680980
11 changed files with 68 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
extern crate rhai;
use rhai::{Engine, FnRegister};
use rhai::{Engine, RegisterFn};
#[derive(Clone)]
struct TestStruct {

View File

@@ -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)

View File

@@ -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)

View File

@@ -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