Skip to content

Commit d73d62c

Browse files
TuntiiCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7c92a2a commit d73d62c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/cookbook/src/crates/rustapi_extras.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ use rustapi_extras::guard::PermissionGuard;
198198
// Only allows users with "admin" role
199199
#[rustapi_rs::get("/admin")]
200200
async fn admin_panel(
201-
_guard: PermissionGuard<"admin">
201+
_guard: PermissionGuard
202202
) -> &'static str {
203203
"Welcome Admin"
204204
}

0 commit comments

Comments
 (0)