aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_api/src/routes
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-03 15:37:20 +0000
committerFuwn <[email protected]>2024-06-03 15:37:20 +0000
commit967774fc048b9d0738fbd13998ed77b6b70effa2 (patch)
treee0f9d650a221476852005eeaac96224584a3a76a /crates/whirl_api/src/routes
parentformat: rustfmt with new rules (diff)
downloadwhirl-967774fc048b9d0738fbd13998ed77b6b70effa2.tar.xz
whirl-967774fc048b9d0738fbd13998ed77b6b70effa2.zip
refactor(crates): update idioms
Diffstat (limited to 'crates/whirl_api/src/routes')
-rw-r--r--crates/whirl_api/src/routes/worlds/info/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/whirl_api/src/routes/worlds/info/mod.rs b/crates/whirl_api/src/routes/worlds/info/mod.rs
index 382c07f..a9d098a 100644
--- a/crates/whirl_api/src/routes/worlds/info/mod.rs
+++ b/crates/whirl_api/src/routes/worlds/info/mod.rs
@@ -15,7 +15,7 @@ pub async fn info(
easy
.url(&format!(
"http://www-dynamic.us.worlds.net/cgi-bin/profile.pl?{}",
- req.username.as_ref().unwrap_or(&"".to_string()),
+ req.username.as_ref().unwrap_or(&String::new()),
))
.unwrap();