File tree Expand file tree Collapse file tree 3 files changed +0
-11
lines changed Expand file tree Collapse file tree 3 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ build = "build.rs"
1515libc = " 0.1.10"
1616num = " 0.1.27"
1717time = " 0.1.32"
18- lazy_static = " 0.1.*"
1918
2019[build-dependencies ]
2120rustc-serialize = " 0.3.16"
Original file line number Diff line number Diff line change 1-
21use defines:: AfError ;
32use std:: error:: Error ;
4- use std:: sync:: Mutex ;
53
64pub type ErrorCallback = Fn ( AfError ) ;
75
86pub static mut HANDLE_ERROR : & ' static ErrorCallback = & handle_error_general;
97
10- lazy_static ! {
11- static ref HANDLE_ERROR_LOCK : Mutex <i32 > = Mutex :: new( 0 ) ;
12- }
13-
148#[ allow( unused_must_use) ]
159pub fn register_error_handler ( callback : & ' static ErrorCallback ) {
16- HANDLE_ERROR_LOCK . lock ( ) . unwrap ( ) ;
1710 unsafe {
1811 HANDLE_ERROR = callback;
1912 }
Original file line number Diff line number Diff line change 22 html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
33 html_root_url = "http://arrayfire.com/docs/rust" ) ]
44
5- #[ macro_use]
6- extern crate lazy_static;
7-
85pub use array:: Array ;
96pub use array:: { print} ;
107mod array;
You can’t perform that action at this time.
0 commit comments