mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 21:37:55 +08:00
replace error-chain by anyhow (#152)
This commit is contained in:
+1
-8
@@ -1,14 +1,7 @@
|
||||
use error_chain::error_chain;
|
||||
use anyhow::Result;
|
||||
use serde::ser::{self, SerializeStruct};
|
||||
use std::{fmt, process::Command, result};
|
||||
|
||||
error_chain! {
|
||||
foreign_links {
|
||||
Utf8(std::string::FromUtf8Error);
|
||||
Io(std::io::Error);
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Info(pub String);
|
||||
|
||||
impl fmt::Display for Info {
|
||||
|
||||
Reference in New Issue
Block a user