From 6372e0947c35fce1acae0e1175d9f6d89b91c0da Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Sat, 10 Aug 2019 11:20:22 -0600 Subject: [PATCH] Fix more bare dyn traits in runtime-c-api --- lib/runtime-c-api/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runtime-c-api/src/error.rs b/lib/runtime-c-api/src/error.rs index aea8691e9..444bf61ee 100644 --- a/lib/runtime-c-api/src/error.rs +++ b/lib/runtime-c-api/src/error.rs @@ -8,7 +8,7 @@ use std::ptr; use std::slice; thread_local! { - static LAST_ERROR: RefCell>> = RefCell::new(None); + static LAST_ERROR: RefCell>> = RefCell::new(None); } pub fn update_last_error(err: E) { @@ -18,7 +18,7 @@ pub fn update_last_error(err: E) { } /// Retrieve the most recent error, clearing it in the process. -pub(crate) fn take_last_error() -> Option> { +pub(crate) fn take_last_error() -> Option> { LAST_ERROR.with(|prev| prev.borrow_mut().take()) }