aboutsummaryrefslogtreecommitdiff
path: root/src/call/account.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/call/account.rs
parent0acc44b468a6c244620efee7470fc24d6971e085 (diff)
get rid of some of the static lifetimes
Diffstat (limited to 'src/call/account.rs')
-rw-r--r--src/call/account.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/call/account.rs b/src/call/account.rs
index 2cd89d5..6f60c8d 100644
--- a/src/call/account.rs
+++ b/src/call/account.rs
@@ -23,12 +23,12 @@ impl From<Login<'_>> for xmlrpc::Value {
}
impl Call for Login<'_> {
- fn method_name(&self) -> &'static str {
- "account.login"
+ fn method_name(&self) -> String {
+ String::from("account.login")
}
- fn expected(&self) -> &'static [i32] {
- &[1000]
+ fn expected(&self) -> Vec<i32> {
+ vec![1000]
}
}
@@ -44,10 +44,10 @@ impl From<Logout> for xmlrpc::Value {
}
impl Call for Logout {
- fn method_name(&self) -> &'static str {
- "account.logout"
+ fn method_name(&self) -> String {
+ String::from("account.logout")
}
- fn expected(&self) -> &'static [i32] {
- &[1500]
+ fn expected(&self) -> Vec<i32> {
+ vec![1500]
}
}