Use uri! as much as possible instead of directly writing URLs

This commit is contained in:
Bat
2018-06-19 22:20:27 +01:00
parent db248701b9
commit 8ab25b1ca2
8 changed files with 22 additions and 24 deletions
+1 -1
View File
@@ -16,5 +16,5 @@ fn notifications(conn: DbConn, user: User) -> Template {
#[get("/notifications", rank = 2)]
fn notifications_auth() -> Flash<Redirect>{
utils::requires_login("You need to be logged in order to see your notifications", "/notifications")
utils::requires_login("You need to be logged in order to see your notifications", uri!(notifications))
}