Commit Graph

2 Commits

Author SHA1 Message Date
David Barsky
6fb1b68950 clippy: prevent holding a span guard over an .await
Summary:
X-link: https://github.com/facebookresearch/Private-ID/pull/119

We should probably lint against using an `.enter()` guard over `.await` points for the reasons outlined in https://docs.rs/tracing/latest/tracing/struct.Span.html#in-asynchronous-code.

Reviewed By: zertosh

Differential Revision: D50528695

fbshipit-source-id: 82fcc97a83b5d820c8673e6f56794dc47fd4d77f
2023-11-16 07:31:54 -08:00
David Tolnay
2937b1d8c0 Add support for clippy.toml configuration file
Summary: I am interested in running clippy under buck2 in CI for https://github.com/dtolnay/cxx, but I need it to be configured with `msrv = "..."` the same as my Cargo builds.

Reviewed By: diliop

Differential Revision: D43991741

fbshipit-source-id: c9a6a923651cebf5f24a48c6cd5daac0631cb763
2023-03-10 19:22:46 -08:00