Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert unwraps to expects #93

Merged

Conversation

colemickens
Copy link
Member

This is every unwrap( replaced with an expect. The expect usages seem fine to me.

Comment on lines 230 to 238
r.file_name()
.and_then(|n| n.to_str())
.unwrap_or_else(|| panic!("failed to convert nar_info reference to string: {}",
r.display()))
.to_owned()
Copy link
Member Author

Choose a reason for hiding this comment

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

this seems like somewhere we might want to surface out an error, maybe MNC should just warn + skip the path?

Maybe that's worse though, it'd be annoying to debug a case where 99% of a closure is uploaded but a ref is missing. Maybe Nix will give an okay message in that case.

Copy link
Member Author

Choose a reason for hiding this comment

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

but not right now :)

@grahamc grahamc merged commit b1ec181 into colemickens/startup-noti-file Aug 30, 2024
12 checks passed
@grahamc grahamc deleted the colemickens/unwraps-to-expect branch August 30, 2024 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants