Update for nightly changes
This commit is contained in:
parent
983dab6924
commit
c4187638a8
|
|
@ -72,7 +72,7 @@ unsafe fn state<'a, S: 'a>(bio: *mut BIO) -> &'a mut StreamState<S> {
|
||||||
|
|
||||||
#[cfg(feature = "nightly")]
|
#[cfg(feature = "nightly")]
|
||||||
fn recover<F, T>(f: F) -> Result<T, Box<Any + Send>> where F: FnOnce() -> T {
|
fn recover<F, T>(f: F) -> Result<T, Box<Any + Send>> where F: FnOnce() -> T {
|
||||||
::std::panic::recover(::std::panic::AssertRecoverSafe::new(f))
|
::std::panic::recover(::std::panic::AssertRecoverSafe(f))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "nightly"))]
|
#[cfg(not(feature = "nightly"))]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue