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

Merge branch 'master' of http://www.github.com/modrinth/labrinth into… #579

Merge branch 'master' of http://www.github.com/modrinth/labrinth into…

Merge branch 'master' of http://www.github.com/modrinth/labrinth into… #579

GitHub Actions / clippy failed Nov 30, 2023 in 0s

clippy

2 errors, 3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 3
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 warning on line 5 in src/search/indexing/local_import.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `futures::TryStreamExt`

warning: unused import: `futures::TryStreamExt`
 --> src/search/indexing/local_import.rs:5:5
  |
5 | use futures::TryStreamExt;
  |     ^^^^^^^^^^^^^^^^^^^^^

Check warning on line 495 in src/database/models/version_item.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `futures::stream::TryStreamExt`

warning: unused import: `futures::stream::TryStreamExt`
   --> src/database/models/version_item.rs:495:13
    |
495 |         use futures::stream::TryStreamExt;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 654 in src/database/models/version_item.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `str` cannot be known at compilation time

error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> src/database/models/version_item.rs:654:43
    |
654 | ...                   .map(|x| VersionStatus::from_string(&x)),
    |                             ^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `str`
    = note: all function arguments must have a statically known size

Check failure on line 730 in src/database/models/project_item.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the size for values of type `str` cannot be known at compilation time

error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> src/database/models/project_item.rs:730:71
    |
730 | ...                   requested_status: m.requested_status.map(|x| ProjectStatus::from_string(
    |                                                                 ^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `str`
    = note: all function arguments must have a statically known size

Check warning on line 15 in src/routes/v2/projects.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `DateTime`, `Utc`

warning: unused imports: `DateTime`, `Utc`
  --> src/routes/v2/projects.rs:15:14
   |
15 | use chrono::{DateTime, Utc};
   |              ^^^^^^^^  ^^^
   |
   = note: `#[warn(unused_imports)]` on by default