8000 chore: move to edition 2024 by Hofer-Julian · Pull Request #1274 · conda/rattler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: move to edition 2024 #1274

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Hofer-Julian
Copy link
Collaborator

There are a few things left to discuss:

  • A couple of tests set env vars which is unsafe in a multi-threaded context. On Pixi, I just enforced current_thread with tokio, In rattler, it's also "normal" tests, so I am unsure what's the best way forward here.
  • A few lifetime problems that are non-obvious to me
  • Clippy dislikes unnecessary continue. I think I'd rather disable the warning. What do you say?

@Hofer-Julian
Copy link
Collaborator Author

A couple of tests set env vars which is unsafe in a multi-threaded context. On Pixi, I just enforced current_thread with tokio, In rattler, it's also "normal" tests, so I am unsure what's the best way forward here.

Thinking a bit more about this, I think it shouldn't be a problem since we use cargo-nextest which isolates each test into it's own process.

Should I just wrap every set_var in an unsafe with // SAFETY: fine since cargo-nextest isolates every test in it's own process @baszalmstra?

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.

1 participant
0