Skip to content

Conversation

@c410-f3r
Copy link
Contributor

@c410-f3r c410-f3r commented Feb 2, 2023

#[clippy::has_significant_drop] tells that a structure should be considered when evaluating some lints. Examples of such behavior are the existent clippy::significant_drop_in_scrutinee and the soon-to-be-finished rust-lang/rust-clippy#9399.

`#[clippy::has_significant_drop]` tells that a structure should be considered when evaluating some lints. Examples of such behavior are the existent `clippy::significant_drop_in_scrutinee` and in the soon-to-be-finished rust-lang/rust-clippy#9399.
Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea, but this should go on the other locking types as well, such as:

  • MutexGuardArc
  • SemaphoreGuard[Arc]
  • RwLock[Read/Write/UpgradableRead]Guard

@c410-f3r
Copy link
Contributor Author

c410-f3r commented Feb 3, 2023

I like the idea, but this should go on the other locking types as well, such as:

* `MutexGuardArc`

* `SemaphoreGuard[Arc]`

* `RwLock[Read/Write/UpgradableRead]Guard`

Done

Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@notgull notgull merged commit 39e0b6d into smol-rs:master Feb 3, 2023
@notgull notgull mentioned this pull request Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants