Skip to content

Fix/list databases

Fix/list databases #1

GitHub Actions / clippy succeeded Feb 8, 2024 in 0s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 465 in src/models/block.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true

warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
   --> src/models/block.rs:465:1
    |
465 | impl Into<CreateBlock> for Block {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
    = note: `#[warn(clippy::from_over_into)]` on by default
help: replace the `Into` implementation with `From<models::block::Block>`
    |
465 ~ impl From<Block> for CreateBlock {
466 ~     fn from(val: Block) -> Self {
467 ~         match val {
    |

Check warning on line 101 in src/models/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `expect_databases` is never used

warning: method `expect_databases` is never used
   --> src/models/mod.rs:101:19
    |
83  | impl ListResponse<Object> {
    | ------------------------- method in this implementation
...
101 |     pub(crate) fn expect_databases(self) -> Result<ListResponse<Database>, crate::Error> {
    |                   ^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default