Skip to content

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jun 12, 2025

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Jun 12, 2025
@Turbo87 Turbo87 requested a review from a team June 12, 2025 17:50
@Turbo87 Turbo87 force-pushed the trustpub-verification branch from 0481586 to c2c8048 Compare June 12, 2025 17:52
Copy link
Contributor

@eth3lbert eth3lbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks great! Just a small nit, but it's not a blocker.


if !user_owners.iter().any(|owner| owner.0 == auth_user.id) {
return Err(bad_request("You are not an owner of this crate"));
let auth_owner = user_owners
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Instead of auth_owner.3 It might be more readable to destructure it as a variable.

Suggested change
let auth_owner = user_owners
let (.., verified) = user_owners

or

Suggested change
let auth_owner = user_owners
let (_, _, _, verified) = user_owners

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a good idea. thanks! :)

@Turbo87 Turbo87 force-pushed the trustpub-verification branch from c2c8048 to f10211e Compare June 13, 2025 08:24
@Turbo87 Turbo87 enabled auto-merge (squash) June 13, 2025 08:26
@Turbo87 Turbo87 merged commit d7b16df into rust-lang:main Jun 13, 2025
10 checks passed
@Turbo87 Turbo87 deleted the trustpub-verification branch June 13, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants