html terminal
Diffstat (limited to 'src/bot/maps.rs')
-rw-r--r--src/bot/maps.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot/maps.rs b/src/bot/maps.rs
index 9c62168..758cae0 100644
--- a/src/bot/maps.rs
+++ b/src/bot/maps.rs
@@ -37,7 +37,7 @@ pub async fn autocomplete<'a>(
) -> impl futures::Stream<Item = String> + 'a {
futures::stream::iter(Maps::get_all(&ctx.data().stdin).await)
.filter(move |name| futures::future::ready(name.starts_with(partial)))
- .map(|name| name.to_string())
+ .map(ToString::to_string)
}
#[poise::command(