- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 102
Closed as not planned
Closed as not planned
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
Setup
RunQueryDsl overrides calls to vec.first to RunQueryDsl::first() this happens to all possible calls to first() if the trait is imported.
Versions
- Rust:: 1.75
- Diesel:: 2.1.4
- Diesel_async:: 0.4.1
- Database:: None
- Operating System: EndeavourOS
Feature Flags
- diesel:: None
- diesel_async:: None
Problem Description
The diesel_async::RunQueryDsl trait overrides the default behavior of any structs first() function to RunQueryDsl::first causing a nasty compile time error.
What are you trying to accomplish?
I wish to use the vec.first() operation instead of vec.get(0). (Mainly becuase clippy errors, but this is a pretty hard bug to find).
Steps to reproduce
Here is a gist that shows the issue at hand.
https://gist.github.com/fastfists/9d0f1da80f825be39f9a4499aa8990a7
Checklist
- I have already looked over the issue tracker for similar possible closed issues.
-  This issue can be reproduced on Rust's stable channel. (Your issue will be
 closed if this is not the case)
- This issue can be reproduced without requiring a third party crate
shuklaayush
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request