Update for nightly changes

This commit is contained in:
Steven Fackler 2016-03-27 13:29:24 -07:00
parent 983dab6924
commit c4187638a8
1 changed files with 1 additions and 1 deletions

View File

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