Skip to content
GitHub Actions / clippy failed Nov 17, 2023 in 0s

clippy

43 errors

Details

Results

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

Versions

  • rustc 1.74.0 (79e9716c9 2023-11-13)
  • cargo 1.74.0 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (79e9716 2023-11-13)

Annotations

Check failure on line 59 in src/info_storages/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/mod.rs:59:5
   |
59 |     async fn remove_info(&self, file_id: &str) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 52 in src/info_storages/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/mod.rs:52:5
   |
52 |     async fn get_info(&self, file_id: &str) -> RustusResult<crate::models::file_info::FileInfo> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 45 in src/info_storages/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/mod.rs:41:5
   |
41 |       async fn set_info(
   |       ^----
   |       |
   |  _____`async` because of this
   | |
42 | |         &self,
43 | |         file_info: &crate::models::file_info::FileInfo,
44 | |         create: bool,
45 | |     ) -> RustusResult<()> {
   | |_________________________^
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 34 in src/info_storages/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/mod.rs:34:5
   |
34 |     async fn prepare(&mut self) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 82 in src/info_storages/redis_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/redis_info_storage.rs:82:5
   |
82 |     async fn remove_info(&self, file_id: &str) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 70 in src/info_storages/redis_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/redis_info_storage.rs:70:5
   |
70 |     async fn get_info(&self, file_id: &str) -> RustusResult<FileInfo> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 57 in src/info_storages/redis_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/redis_info_storage.rs:57:5
   |
57 |     async fn set_info(&self, file_info: &FileInfo, _create: bool) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 53 in src/info_storages/redis_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/redis_info_storage.rs:53:5
   |
53 |     async fn prepare(&mut self) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 56 in src/info_storages/file_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/file_info_storage.rs:56:5
   |
56 |     async fn remove_info(&self, file_id: &str) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 47 in src/info_storages/file_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/file_info_storage.rs:47:5
   |
47 |     async fn get_info(&self, file_id: &str) -> RustusResult<FileInfo> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 32 in src/info_storages/file_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/file_info_storage.rs:32:5
   |
32 |     async fn set_info(&self, file_info: &FileInfo, create: bool) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 25 in src/info_storages/file_info_storage.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/file_info_storage.rs:25:5
   |
25 |     async fn prepare(&mut self) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 37 in src/info_storages/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/base.rs:37:5
   |
37 |     async fn remove_info(&self, file_id: &str) -> RustusResult<()>;
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 31 in src/info_storages/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/base.rs:31:5
   |
31 |     async fn get_info(&self, file_id: &str) -> RustusResult<FileInfo>;
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 25 in src/info_storages/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/base.rs:25:5
   |
25 |     async fn set_info(&self, file_info: &FileInfo, create: bool) -> RustusResult<()>;
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 12 in src/info_storages/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/info_storages/base.rs:12:5
   |
12 |     async fn prepare(&mut self) -> RustusResult<()>;
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 84 in src/data_storage/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/data_storage/mod.rs:81:5
   |
81 |       async fn remove_file(
   |       ^----
   |       |
   |  _____`async` because of this
   | |
82 | |         &self,
83 | |         file_info: &crate::models::file_info::FileInfo,
84 | |     ) -> RustusResult<()> {
   | |_________________________^
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 74 in src/data_storage/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/data_storage/mod.rs:70:5
   |
70 |       async fn concat_files(
   |       ^----
   |       |
   |  _____`async` because of this
   | |
71 | |         &self,
72 | |         file_info: &crate::models::file_info::FileInfo,
73 | |         parts_info: Vec<crate::models::file_info::FileInfo>,
74 | |     ) -> RustusResult<()> {
   | |_________________________^
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 63 in src/data_storage/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/data_storage/mod.rs:60:5
   |
60 |       async fn create_file(
   |       ^----
   |       |
   |  _____`async` because of this
   | |
61 | |         &self,
62 | |         file_info: &crate::models::file_info::FileInfo,
63 | |     ) -> RustusResult<String> {
   | |_____________________________^
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 53 in src/data_storage/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/data_storage/mod.rs:49:5
   |
49 |       async fn add_bytes(
   |       ^----
   |       |
   |  _____`async` because of this
   | |
50 | |         &self,
51 | |         file_info: &crate::models::file_info::FileInfo,
52 | |         bytes: bytes::Bytes,
53 | |     ) -> RustusResult<()> {
   | |_________________________^
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 42 in src/data_storage/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/data_storage/mod.rs:38:5
   |
38 |       async fn get_contents(
   |       ^----
   |       |
   |  _____`async` because of this
   | |
39 | |         &self,
40 | |         file_info: &crate::models::file_info::FileInfo,
41 | |         request: &axum::extract::Request,
42 | |     ) -> crate::errors::RustusResult<axum::response::Response> {
   | |______________________________________________________________^
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 31 in src/data_storage/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
  --> src/data_storage/mod.rs:31:5
   |
31 |     async fn prepare(&mut self) -> RustusResult<()> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 176 in src/data_storage/s3_hybrid.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
   --> src/data_storage/s3_hybrid.rs:176:5
    |
176 |     async fn remove_file(&self, file_info: &FileInfo) -> RustusResult<()> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 172 in src/data_storage/s3_hybrid.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
   --> src/data_storage/s3_hybrid.rs:168:5
    |
168 |       async fn concat_files(
    |       ^----
    |       |
    |  _____`async` because of this
    | |
169 | |         &self,
170 | |         _file_info: &FileInfo,
171 | |         _parts_info: Vec<FileInfo>,
172 | |     ) -> RustusResult<()> {
    | |_________________________^
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

Check failure on line 164 in src/data_storage/s3_hybrid.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

functions in traits cannot be declared `async`

error[E0706]: functions in traits cannot be declared `async`
   --> src/data_storage/s3_hybrid.rs:164:5
    |
164 |     async fn create_file(&self, file_info: &FileInfo) -> RustusResult<String> {
    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     `async` because of this
    |
    = note: `async` trait functions are not currently supported
    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information