clippy: pass &str/&[..] instead of &String/&Vec

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler committed 2021-01-20 16:23:54 +01:00
1 parent ccec086e25
commit 09faa9ee95
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -87,8 +87,8 @@ pub struct SubscriptionInfo {
}
async fn register_subscription(
key: &String,
server_id: &String,
key: &str,
server_id: &str,
checktime: i64
) -> Result<(String, String), Error> {
// WHCMS sample code feeds the key into this, but it's just a challenge, so keep it simple