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

nit: small change to locking code #5332

Merged
merged 1 commit into from
Oct 28, 2024
Merged

nit: small change to locking code #5332

merged 1 commit into from
Oct 28, 2024

Conversation

mtsgrd
Copy link
Contributor

@mtsgrd mtsgrd commented Oct 28, 2024

  • optional return value from intersection function
  • filter those values in compute locks function

- reformat comments
- fewer derives
- tighter types
Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 2:18pm

@github-actions github-actions bot added the rust Pull requests that update Rust code label Oct 28, 2024
@@ -202,12 +205,12 @@ mod tests {
},
])?;

let dependencies_1 = workspace_ranges.intersection(&path, 2, 1);
let dependencies_1 = workspace_ranges.intersection(&path, 2, 1).unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

why is this safe to do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it's a test?

Copy link
Member

Choose a reason for hiding this comment

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

🤦

@mtsgrd mtsgrd merged commit 52d0dba into master Oct 28, 2024
19 checks passed
@mtsgrd mtsgrd deleted the hunk-deps-cleanup branch October 28, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants