mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-28 22:41:06 +00:00
Use unwrap_or_default() instead of unwrap_or("")
This commit is contained in:
parent
33bd290679
commit
d6bb2bfb72
1 changed files with 2 additions and 3 deletions
|
@ -15,10 +15,9 @@
|
||||||
(&uri!(instance::admin_email_blocklist: page=_).to_string(), i18n!(ctx.1, "Email blocklist"), false)
|
(&uri!(instance::admin_email_blocklist: page=_).to_string(), i18n!(ctx.1, "Email blocklist"), false)
|
||||||
])
|
])
|
||||||
|
|
||||||
<form method="get" action="@uri!(instance::admin_search_users: page = _, user = user.unwrap_or(""))">
|
<form method="get" action="@uri!(instance::admin_search_users: page = _, user = user.unwrap_or_default())">
|
||||||
<header>
|
<header>
|
||||||
<input type="search" name="user" value="@user.unwrap_or("")">
|
<input type="search" name="user" value="@user.unwrap_or_default()">
|
||||||
<input type="hidden" name="page" value="@page">
|
|
||||||
<input type="submit" value="@i18n!(ctx.1, "Search users")">
|
<input type="submit" value="@i18n!(ctx.1, "Search users")">
|
||||||
</header>
|
</header>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue