change: Improve consistency in string declaration whenever suitable
This commit is contained in:
4 files changed
+9
-9
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user