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
2021-01-19 14:46:39 +01:00
parent ccec086e25
commit 09faa9ee95
4 changed files with 6 additions and 6 deletions

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