Skip to content

Commit bbadd1e

Browse files
committed
Remove unnecessary braces
1 parent fbee4dd commit bbadd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/crate_owner_invitation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::views::{EncodableCrateOwnerInvitation, InvitationResponse};
66

77
/// Handles the `GET /me/crate_owner_invitations` route.
88
pub fn list(req: &mut dyn RequestExt) -> EndpointResult {
9-
let user_id = { req.authenticate()? }.user_id();
9+
let user_id = req.authenticate()?.user_id();
1010
let conn = &*req.db_conn()?;
1111

1212
let crate_owner_invitations = crate_owner_invitations::table

0 commit comments

Comments
 (0)