File tree 5 files changed +8
-4
lines changed
5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 21
21
be perfectly panic safe as far as * internal* invariants are concerned, but
22
22
(afaict) they should not be marked as ` RefUnwindSafe ` due to internal
23
23
mutability and thus potentially breaking * user* invariants.
24
+ - Upgrade to require ` cc ` 1.0.
24
25
- Several Lua stack checking bugs have been fixed that could have lead to
25
26
unsafety in release mode.
26
27
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ builtin-lua = ["cc"]
26
26
27
27
[dependencies ]
28
28
libc = { version = " 0.2" }
29
- failure = { git = " https://github.com/rust-lang-nursery/failure " , version = " 1.0 " }
29
+ failure = { version = " 0.1.1 " }
30
30
compiletest_rs = { version = " 0.3" , optional = true }
31
31
32
32
[build-dependencies ]
Original file line number Diff line number Diff line change 5
5
6
6
MIT License
7
7
8
- Copyright (c) 2017 Chucklefish LTD
8
+ Copyright (c) 2017
9
9
10
10
Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1
1
# rlua -- High level bindings between Rust and Lua
2
2
3
- [ ![ Build Status] ( https://travis-ci.org/chucklefish /rlua.svg?branch=master )] ( https://travis-ci.org/chucklefish /rlua )
3
+ [ ![ Build Status] ( https://travis-ci.org/kyren /rlua.svg?branch=master )] ( https://travis-ci.org/kyren /rlua )
4
4
[ ![ Latest Version] ( https://img.shields.io/crates/v/rlua.svg )] ( https://crates.io/crates/rlua )
5
5
[ ![ API Documentation] ( https://docs.rs/rlua/badge.svg )] ( https://docs.rs/rlua )
6
6
Original file line number Diff line number Diff line change @@ -185,7 +185,10 @@ impl failure::Fail for Error {
185
185
fn cause ( & self ) -> Option < & failure:: Fail > {
186
186
match * self {
187
187
Error :: CallbackError { ref cause, .. } => Some ( cause. as_ref ( ) ) ,
188
- Error :: ExternalError ( ref err) => err. as_fail ( ) . cause ( ) ,
188
+ // Error::cause simply returns the contained Fail type, which we are already displaying
189
+ // and returning the backtrace for, no need to repeat it as the cause.
190
+ // When failure 1.0 is released, this can become `err.as_fail.cause()`
191
+ Error :: ExternalError ( ref err) => err. cause ( ) . cause ( ) ,
189
192
_ => None ,
190
193
}
191
194
}
You can’t perform that action at this time.
0 commit comments