And i think the last one

pull/745/head
Yuri Astrakhan 11 months ago
parent 389347e04e
commit 882984dd41
  1. 10
      lib/oxigraph/src/storage/backend/rocksdb.rs
  2. 2
      lib/oxrdfio/src/error.rs

@ -1314,6 +1314,8 @@ impl SstFileWriter {
}
}
#[derive(thiserror::Error)]
#[error("{}", self.message())]
struct ErrorStatus(rocksdb_status_t);
unsafe impl Send for ErrorStatus {}
@ -1352,14 +1354,6 @@ impl fmt::Debug for ErrorStatus {
}
}
impl fmt::Display for ErrorStatus {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(self.message())
}
}
impl Error for ErrorStatus {}
impl From<ErrorStatus> for StorageError {
fn from(status: ErrorStatus) -> Self {
if status.0.code == rocksdb_status_code_t_rocksdb_status_code_io_error {

@ -63,7 +63,7 @@ impl SyntaxError {
/// The location of the error inside of the file.
#[inline]
pub fn location(&self) -> Option<Range<TextPosition>> {
match &self {
match self {
Self::Turtle(e) => {
let location = e.location();
Some(

Loading…
Cancel
Save