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 #139

Update Rust crate mongodb to v3

Update Rust crate mongodb to v3 #139

Triggered via pull request August 12, 2024 09:08
Status Failure
Total duration 4m 31s
Artifacts

compilation.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 30 warnings
this method takes 0 arguments but 1 argument was supplied: src/server/drop_database.rs#L27
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 { | ^^^^
this method takes 1 argument but 2 arguments were supplied: src/server/aggregate.rs#L35
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 { | ^^^^^^^^^
this method takes 1 argument but 2 arguments were supplied: src/server/delete_many.rs#L37
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 { | ^^^^^^^^^^^
this method takes 1 argument but 2 arguments were supplied: src/server/delete_one.rs#L37
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 { | ^^^^^^^^^^
this method takes 2 arguments but 3 arguments were supplied: src/server/update_many.rs#L42
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 { | ^^^^^^^^^^^
this method takes 2 arguments but 3 arguments were supplied: src/server/update_one.rs#L42
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 { | ^^^^^^^^^^
this method takes 1 argument but 2 arguments were supplied: src/server/insert_many.rs#L38
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 { | ^^^^^^^^^^^
this method takes 1 argument but 2 arguments were supplied: src/server/insert_one.rs#L38
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 { | ^^^^^^^^^^
this method takes 1 argument but 2 arguments were supplied: src/server/find_many.rs#L52
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> { | ^^^^
this method takes 1 argument but 2 arguments were supplied: src/server/find_one.rs#L43
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> { | ^^^^^^^^
clippy
Clippy had exited with the 101 exit code
compile-macos
Process completed with exit code 1.
compile-linux
Process completed with exit code 101.
compile-windows
Process completed with exit code 1.
format
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
format
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-macos
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
compile-macos
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
compile-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-linux
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
compile-linux
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
compile-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-windows
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
compile-windows
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
compile-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
compile-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/