Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove Document: DocumentDeserialize dependency #2211

Merged
merged 2 commits into from
Oct 13, 2023
Merged

remove Document: DocumentDeserialize dependency #2211

merged 2 commits into from
Oct 13, 2023

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Oct 6, 2023

The dependency requires users to implement an API they may not use.

The dependency requires users to implement an API they may not use.
@codecov-commenter
Copy link

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (e246e57) 94.03% compared to head (528665b) 94.01%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2211      +/-   ##
==========================================
- Coverage   94.03%   94.01%   -0.02%     
==========================================
  Files         327      327              
  Lines       65013    65022       +9     
==========================================
+ Hits        61132    61133       +1     
- Misses       3881     3889       +8     
Files Coverage Δ
src/schema/document/mod.rs 89.92% <ø> (ø)
src/core/searcher.rs 78.39% <50.00%> (-1.10%) ⬇️
src/store/reader.rs 79.47% <33.33%> (-0.90%) ⬇️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/core/searcher.rs Outdated Show resolved Hide resolved
@@ -104,7 +107,10 @@ impl Searcher {

/// Fetches a document in an asynchronous manner.
#[cfg(feature = "quickwit")]
pub async fn doc_async<D: Document>(&self, doc_address: DocAddress) -> crate::Result<D> {
pub async fn doc_async<D: Document + DocumentDeserialize>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

same question as above

Copy link
Collaborator

@fulmicoton fulmicoton left a comment

Choose a reason for hiding this comment

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

See comments inline

@PSeitz PSeitz merged commit 182f58c into main Oct 13, 2023
5 checks passed
@PSeitz PSeitz deleted the doc_as_trait branch October 13, 2023 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants