Skip to content

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Sep 30, 2025

The cost of the unwrap is marginal compared to re-running all queries in a cycle. Using unsafe here only makes it unnecessarily hard to debug when the invariant is broken.

Copy link

netlify bot commented Sep 30, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit 81277a5
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/68dbcc3f9925b20008fe693a

@MichaReiser MichaReiser changed the title Replace unsafe unwrap with expect call refactor: Replace unsafe unwrap with expect call Sep 30, 2025
@MichaReiser MichaReiser added the refactoring Code works but is messy label Sep 30, 2025
Copy link

codspeed-hq bot commented Sep 30, 2025

CodSpeed Performance Report

Merging #998 will not alter performance

Comparing MichaReiser:unsafe-unwrap-to-expect (81277a5) with master (5c826b5)

Summary

✅ 12 untouched

@MichaReiser MichaReiser added this pull request to the merge queue Sep 30, 2025
Merged via the queue into salsa-rs:master with commit 9c3278f Sep 30, 2025
12 checks passed
@MichaReiser MichaReiser deleted the unsafe-unwrap-to-expect branch September 30, 2025 12:45
@github-actions github-actions bot mentioned this pull request Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code works but is messy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant