Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Update Rust crate mongodb to v3 #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Update Rust crate mongodb to v3

5399237
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Update Rust crate mongodb to v3 #27

Update Rust crate mongodb to v3
5399237
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed Aug 12, 2024 in 1s

clippy

10 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 10
Warning 0
Note 0
Help 0

Versions

  • rustc 1.80.1 (3f5fd8dd4 2024-08-06)
  • cargo 1.80.1 (376290515 2024-07-16)
  • clippy 0.1.80 (3f5fd8d 2024-08-06)

Annotations

Check failure on line 27 in src/server/drop_database.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 0 arguments but 1 argument was supplied

error[E0061]: this method takes 0 arguments but 1 argument was supplied
  --> src/server/drop_database.rs:27:47
   |
27 |     state.mongo().database(&payload.database).drop(None).await?;
   |                                               ^^^^ ----
   |                                                    |
   |                                                    unexpected argument of type `std::option::Option<_>`
   |                                                    help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/drop.rs:19:12
   |
19 |     pub fn drop(&self) -> DropDatabase {
   |            ^^^^

Check failure on line 35 in src/server/aggregate.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 1 argument but 2 arguments were supplied

error[E0061]: this method takes 1 argument but 2 arguments were supplied
  --> src/server/aggregate.rs:35:10
   |
35 |         .aggregate(payload.pipeline, None)
   |          ^^^^^^^^^                 ------
   |                                    | |
   |                                    | unexpected argument of type `std::option::Option<_>`
   |                                    help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/aggregate.rs:55:12
   |
55 |     pub fn aggregate(&self, pipeline: impl IntoIterator<Item = Document>) -> Aggregate {
   |            ^^^^^^^^^

Check failure on line 37 in src/server/delete_many.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 1 argument but 2 arguments were supplied

error[E0061]: this method takes 1 argument but 2 arguments were supplied
  --> src/server/delete_many.rs:37:10
   |
37 |         .delete_many(payload.filter, None)
   |          ^^^^^^^^^^^               ------
   |                                    | |
   |                                    | unexpected argument of type `std::option::Option<_>`
   |                                    help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/delete.rs:43:12
   |
43 |     pub fn delete_many(&self, query: Document) -> Delete {
   |            ^^^^^^^^^^^

Check failure on line 37 in src/server/delete_one.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 1 argument but 2 arguments were supplied

error[E0061]: this method takes 1 argument but 2 arguments were supplied
  --> src/server/delete_one.rs:37:10
   |
37 |         .delete_one(payload.filter, None)
   |          ^^^^^^^^^^               ------
   |                                   | |
   |                                   | unexpected argument of type `std::option::Option<_>`
   |                                   help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/delete.rs:29:12
   |
29 |     pub fn delete_one(&self, query: Document) -> Delete {
   |            ^^^^^^^^^^

Check failure on line 42 in src/server/update_many.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 2 arguments but 3 arguments were supplied

error[E0061]: this method takes 2 arguments but 3 arguments were supplied
  --> src/server/update_many.rs:42:10
   |
42 |         .update_many(payload.filter, payload.update, Some(options))
   |          ^^^^^^^^^^^                               ---------------
   |                                                    | |
   |                                                    | unexpected argument of type `std::option::Option<mongodb::options::UpdateOptions>`
   |                                                    help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/update.rs:29:12
   |
29 |     pub fn update_many(&self, query: Document, update: impl Into<UpdateModifications>) -> Update {
   |            ^^^^^^^^^^^

Check failure on line 42 in src/server/update_one.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 2 arguments but 3 arguments were supplied

error[E0061]: this method takes 2 arguments but 3 arguments were supplied
  --> src/server/update_one.rs:42:10
   |
42 |         .update_one(payload.filter, payload.update, Some(options))
   |          ^^^^^^^^^^                               ---------------
   |                                                   | |
   |                                                   | unexpected argument of type `std::option::Option<mongodb::options::UpdateOptions>`
   |                                                   help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/update.rs:54:12
   |
54 |     pub fn update_one(&self, query: Document, update: impl Into<UpdateModifications>) -> Update {
   |            ^^^^^^^^^^

Check failure on line 38 in src/server/insert_many.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 1 argument but 2 arguments were supplied

error[E0061]: this method takes 1 argument but 2 arguments were supplied
  --> src/server/insert_many.rs:38:10
   |
38 |         .insert_many(payload.documents, None)
   |          ^^^^^^^^^^^                  ------
   |                                       | |
   |                                       | unexpected argument of type `std::option::Option<_>`
   |                                       help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/insert_many.rs:31:12
   |
31 |     pub fn insert_many(&self, docs: impl IntoIterator<Item = impl Borrow<T>>) -> InsertMany {
   |            ^^^^^^^^^^^

Check failure on line 38 in src/server/insert_one.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 1 argument but 2 arguments were supplied

error[E0061]: this method takes 1 argument but 2 arguments were supplied
  --> src/server/insert_one.rs:38:10
   |
38 |         .insert_one(payload.document, None)
   |          ^^^^^^^^^^                 ------
   |                                     | |
   |                                     | unexpected argument of type `std::option::Option<_>`
   |                                     help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/insert_one.rs:31:12
   |
31 |     pub fn insert_one(&self, doc: impl Borrow<T>) -> InsertOne {
   |            ^^^^^^^^^^

Check failure on line 52 in src/server/find_many.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 1 argument but 2 arguments were supplied

error[E0061]: this method takes 1 argument but 2 arguments were supplied
  --> src/server/find_many.rs:52:10
   |
52 |         .find(payload.filter, Some(options))
   |          ^^^^               ---------------
   |                             | |
   |                             | unexpected argument of type `std::option::Option<mongodb::options::FindOptions>`
   |                             help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/find.rs:27:12
   |
27 |     pub fn find(&self, filter: Document) -> Find<'_, T> {
   |            ^^^^

Check failure on line 43 in src/server/find_one.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this method takes 1 argument but 2 arguments were supplied

error[E0061]: this method takes 1 argument but 2 arguments were supplied
  --> src/server/find_one.rs:43:10
   |
43 |         .find_one(payload.filter, Some(options))
   |          ^^^^^^^^               ---------------
   |                                 | |
   |                                 | unexpected argument of type `std::option::Option<mongodb::options::FindOneOptions>`
   |                                 help: remove the extra argument
   |
note: method defined here
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mongodb-3.0.1/src/action/find.rs:42:12
   |
42 |     pub fn find_one(&self, filter: Document) -> FindOne<'_, T> {
   |            ^^^^^^^^