refactor: 避免一些不必要的 to_string

This commit is contained in:
amtoaer
2025-01-21 22:59:16 +08:00
parent ab84a8dad1
commit 18c966a0f9
2 changed files with 8 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ impl<'a> FavoriteList<'a> {
.await
.query(&[
("media_id", self.fid.as_str()),
("pn", &page.to_string()),
("pn", page.to_string().as_str()),
("ps", "20"),
("order", "mtime"),
("type", "0"),

View File

@@ -39,13 +39,13 @@ impl<'a> Submission<'a> {
.await
.query(&encoded_query(
vec![
("mid", self.upper_id.clone()),
("order", "pubdate".to_string()),
("order_avoided", "true".to_string()),
("platform", "web".to_string()),
("web_location", "1550101".to_string()),
("pn", page.to_string()),
("ps", "30".to_string()),
("mid", self.upper_id.as_str()),
("order", "pubdate"),
("order_avoided", "true"),
("platform", "web"),
("web_location", "1550101"),
("pn", page.to_string().as_str()),
("ps", "30"),
],
MIXIN_KEY.load().as_deref(),
))