aboutsummaryrefslogtreecommitdiff
path: root/src/error/mod.rs
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-10-24 21:52:30 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-10-24 21:52:30 +0200
commita607f4bcab2e846cb2b91761be808eb516d03d8f (patch)
treee8586e6a02ffdf09d7e38fbd2bcc789444c70d20 /src/error/mod.rs
parent0acc44b468a6c244620efee7470fc24d6971e085 (diff)
get rid of some of the static lifetimes
Diffstat (limited to 'src/error/mod.rs')
-rw-r--r--src/error/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/error/mod.rs b/src/error/mod.rs
index 218997f..b8a8c16 100644
--- a/src/error/mod.rs
+++ b/src/error/mod.rs
@@ -6,11 +6,11 @@ pub enum Error {
ParseUrl(url::ParseError),
Reqwest(reqwest::Error),
XmlRpc(xmlrpc::Error),
- Inexistent(&'static str),
- Type(&'static str, &'static str, xmlrpc::Value),
+ Inexistent(String),
+ Type(String, String, xmlrpc::Value),
BadResponse(xmlrpc::Value),
- BadStatus(&'static [i32], i32),
- BadVariant(&'static str, String),
+ BadStatus(Vec<i32>, i32),
+ BadVariant(String, String),
}
impl std::error::Error for Error {}