-
Notifications
You must be signed in to change notification settings - Fork 186
Open
Labels
A-coreArea: Core / deadpoolArea: Core / deadpoolquality of lifeImprovements to the API resulting in a better quality of life for the users of deadpool.Improvements to the API resulting in a better quality of life for the users of deadpool.
Description
Documentation: https://doc.rust-lang.org/clippy/attribs.html#clippyhas_significant_drop
If significant_drop_in_scrutinee lint is enabled, a warning would be generated about an un-intuitive behavior of temporaries in match scrutinees that might lead to deadlocks:
match make_query(&pool.get().await.unwrap()) {
Ok(_) => {
// Connection still not returned to the pool!
}
...
};
// Connection is only released hereSee also: rust-lang/rust#93883
Metadata
Metadata
Assignees
Labels
A-coreArea: Core / deadpoolArea: Core / deadpoolquality of lifeImprovements to the API resulting in a better quality of life for the users of deadpool.Improvements to the API resulting in a better quality of life for the users of deadpool.