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

chore: fix warning for deref on a double reference #493

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Jan 24, 2024

When building pixi, I got the warning:

warning: using `.deref()` on a double reference, which returns `&RepoDataRecord` instead of dereferencing the inner type
   --> /Users/wolfv/Programs/rattler/crates/rattler_solve/src/resolvo/mod.rs:449:61
    |
449 |                 SolverPackageRecord::Record(rec) => Some(rec.deref().clone()),
    |                                                             ^^^^^^^^
    |
    = note: `#[warn(suspicious_double_ref_op)]` on by default

warning: `rattler_solve` (lib) generated 1 warning

I think this fixes it.

@wolfv wolfv merged commit b002f38 into conda:main Jan 24, 2024
13 checks passed
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