Better error management, Utf8Paths & other stuff.
This commit is contained in:
@@ -18,11 +18,10 @@
|
||||
//! `cas-core` provides traits and types to interface with content-addressable
|
||||
//! storage.
|
||||
|
||||
#![feature(inherent_ascii_escape)]
|
||||
|
||||
|
||||
extern crate thiserror;
|
||||
extern crate digest;
|
||||
extern crate camino;
|
||||
|
||||
|
||||
mod error;
|
||||
@@ -42,3 +41,11 @@ pub use crate::{
|
||||
cas::{Cas, RefStore},
|
||||
};
|
||||
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! err {
|
||||
($($arg:tt)*) => {{
|
||||
let res = std::fmt::format(format_args!($($arg)*));
|
||||
Error::err(res)
|
||||
}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user