Moved err crate

This commit is contained in:
Dominik Werder
2024-11-07 18:26:02 +01:00
parent 8fd7e72796
commit 2f89c969cd
124 changed files with 191 additions and 738 deletions

View File

@@ -1,3 +1,4 @@
use daqbuf_err as err;
use err::ToPublicError;
use serde::Deserialize;
use serde::Serialize;
@@ -28,7 +29,7 @@ impl Error {
self.0.msg()
}
pub fn reason(&self) -> Option<::err::Reason> {
pub fn reason(&self) -> Option<err::Reason> {
self.0.reason()
}
@@ -84,7 +85,7 @@ where
T: ToString,
{
fn from(x: T) -> Self {
Self(::err::Error::from_string(x))
Self(err::Error::from_string(x))
}
}