Resolve rustc deprecation warnings

This commit is contained in:
Oliver Hamlet
2020-04-02 08:55:29 +01:00
parent f6e988b1af
commit e31456f5b9
2 changed files with 7 additions and 9 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ mod helpers;
mod state;
use std::cell::RefCell;
use std::error::Error;
use std::ffi::CString;
use std::panic::catch_unwind;
use std::ptr;
@@ -62,7 +61,7 @@ pub unsafe extern "C" fn lci_condition_eval(
};
let state = match (*state).0.read() {
Err(e) => return error(LCI_ERROR_POISONED_THREAD_LOCK, e.description()),
Err(e) => return error(LCI_ERROR_POISONED_THREAD_LOCK, &e.to_string()),
Ok(s) => s,
};