diff options
| author | Lily Mara <lilymara@onesignal.com> | 2022-04-18 10:34:17 -0700 |
|---|---|---|
| committer | Lily Mara <lilymara@onesignal.com> | 2022-04-18 10:34:25 -0700 |
| commit | a511072c2cb29f4a30fbd357c7e4b6771b9f6a29 (patch) | |
| tree | b2c6ca2e8c5976b13e759d831f0a40325e38badf | |
| parent | ee3ebb35f4f077176657b11d2b05b37f23742baf (diff) | |
| download | rust-a511072c2cb29f4a30fbd357c7e4b6771b9f6a29.tar.gz rust-a511072c2cb29f4a30fbd357c7e4b6771b9f6a29.zip | |
fixup! Add `await_holding_invalid_type` lint
| -rw-r--r-- | clippy_lints/src/await_holding_invalid.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clippy_lints/src/await_holding_invalid.rs b/clippy_lints/src/await_holding_invalid.rs index be905f67ec8..5659651c842 100644 --- a/clippy_lints/src/await_holding_invalid.rs +++ b/clippy_lints/src/await_holding_invalid.rs @@ -144,20 +144,17 @@ declare_clippy_lint! { /// /// ### Example /// - /// Strings are, of course, safe to hold across await points. This example - /// exists only to show how this lint might be configured for third-party - /// crates. - /// /// ```toml /// await-holding-invalid-types = [ - /// "std::string::String", + /// "CustomLockType", /// ] /// ``` /// /// ```rust /// # async fn baz() {} + /// struct CustomLockType; /// async fn foo() { - /// let _x = String::from("hello!"); + /// let _x = CustomLockType; /// baz().await; // Lint violation /// } /// ``` |
