We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
almost_swapped
Code which receives a parameter with the ref keyword claimed by clippy to be a swap.
ref
Ref: enarx/drawbridge#423
Example:
pub async fn query( Extension(ref store): Extension<Arc<Store>>, ref cx: RepositoryContext, req: Request<Body>, ) -> impl IntoResponse { ..... }
Claims that ref cx: RepositoryContext, is a swap.
ref cx: RepositoryContext,
rustc 1.69.0 (84c898d65 2023-04-16) binary: rustc commit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc commit-date: 2023-04-16 host: x86_64-unknown-linux-gnu release: 1.69.0 LLVM version: 15.0.7
No response
The text was updated successfully, but these errors were encountered:
I don't quite see why TOPLEVEL_REF_ARG doesn't fire here!?
Sorry, something went wrong.
Seems to be fixed by #10499. We're no longer having this issue.
No branches or pull requests
Description
Code which receives a parameter with the
ref
keyword claimed by clippy to be a swap.Ref: enarx/drawbridge#423
Example:
Claims that
ref cx: RepositoryContext,
is a swap.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: