Remove underscore prefix from route methods to suppress clippy

This commit is contained in:
Kitaiti Makoto
2021-01-15 23:58:48 +09:00
parent 33fceddc08
commit f720dcbe9a
6 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
@i18n!(ctx.1, "To change your avatar, upload it to your gallery and then select from there.")
<a href="@uri!(medias::new)">@i18n!(ctx.1, "Upload an avatar")</a>
</p>
<form method="post" action="@uri!(user::update: _name = u.username.clone())">
<form method="post" action="@uri!(user::update: name = u.username.clone())">
<!-- Rocket hack to use various HTTP methods -->
<input type=hidden name="_method" value="put">