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

Fix breaking 1.74.0 linting changes #259

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 26 additions & 29 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,32 @@
//! ```rust
//! use elasticsearch_dsl::*;
//!
//! fn main() {
//! let query = Search::new()
//! .source(false)
//! .stats("statistics")
//! .from(0)
//! .size(30)
//! .query(
//! Query::bool()
//! .must(Query::multi_match(
//! ["title", "description"],
//! "you know, for search",
//! ))
//! .filter(Query::terms("tags", ["elasticsearch"]))
//! .should(Query::term("verified", true).boost(10)),
//! )
//! .aggregate(
//! "country_ids",
//! Aggregation::terms("country_id")
//! .aggregate("catalog_ids", Aggregation::terms("catalog_id"))
//! .aggregate("company_ids", Aggregation::terms("company_id"))
//! .aggregate(
//! "top1",
//! Aggregation::top_hits()
//! .size(1)
//! .sort(FieldSort::ascending("user_id")),
//! ),
//! ).rescore(Rescore::new(Query::term("field", 1)).query_weight(1.2));
//! }
//! let query = Search::new()
//! .source(false)
//! .stats("statistics")
//! .from(0)
//! .size(30)
//! .query(
//! Query::bool()
//! .must(Query::multi_match(
//! ["title", "description"],
//! "you know, for search",
//! ))
//! .filter(Query::terms("tags", ["elasticsearch"]))
//! .should(Query::term("verified", true).boost(10)),
//! )
//! .aggregate(
//! "country_ids",
//! Aggregation::terms("country_id")
//! .aggregate("catalog_ids", Aggregation::terms("catalog_id"))
//! .aggregate("company_ids", Aggregation::terms("company_id"))
//! .aggregate(
//! "top1",
//! Aggregation::top_hits()
//! .size(1)
//! .sort(FieldSort::ascending("user_id")),
//! ),
//! ).rescore(Rescore::new(Query::term("field", 1)).query_weight(1.2));
//! ```
//!
//! See examples for more.
Expand All @@ -80,7 +78,6 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
trivial_casts,
trivial_numeric_casts,
unconditional_recursion,
Expand Down
Loading