aboutsummaryrefslogtreecommitdiff
path: root/src/call/account.rs
diff options
context:
space:
mode:
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]
}
}