feat: support no_std

This commit is contained in:
jjy
2020-01-17 13:26:05 +08:00
parent c18c099234
commit 1374825778
8 changed files with 43 additions and 15 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
pub use failure::Fail;
pub type Result<T> = ::std::result::Result<T, Error>;
pub type Result<T> = core::result::Result<T, Error>;
#[derive(Fail, Debug, PartialEq, Eq, Clone)]
pub enum Error {
@@ -8,5 +8,5 @@ pub enum Error {
#[fail(display = "Inconsistent store")]
InconsistentStore,
#[fail(display = "Store error {}", _0)]
StoreError(String),
StoreError(crate::string::String),
}