change: Improve consistency in string declaration whenever suitable

This commit is contained in:
SinTan1729 committed 2023-05-23 19:03:47 -05:00
1 parent ff0a17e57b
commit 7b59a9aa5c
4 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ pub fn find_url(shortlink: &str, db: &Connection) -> String {
.query_map([shortlink], |row| row.get("long_url"))
.unwrap();
let mut longlink = "".to_string();
let mut longlink = String::new();
for link in links {
longlink = link.unwrap();
}