This commit is contained in:
folex
2019-08-16 17:24:18 +03:00
parent 6b061dde92
commit fc3b9bad73
18 changed files with 79 additions and 992 deletions

View File

@ -1,6 +1,7 @@
use log;
use crate::api::AppResult;
use crate::errors::AppResult;
use crate::errors::err_msg;
use crate::ffi;

View File

@ -14,3 +14,5 @@ impl fmt::Display for Error {
pub fn err_msg(s: &str) -> Box<Error> {
Error(s.to_string()).into()
}
pub type AppResult<T> = ::std::result::Result<T, Box<Error>>;

View File

@ -1,11 +1,4 @@
use fluence::sdk::*;
use serde_json::value::RawValue;
use api::Request;
use api::Response;
use crate::api::AppResult;
use crate::errors::err_msg;
pub mod database;
pub mod errors;