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

Test all endpoints

Test all endpoints #29

GitHub Actions / clippy succeeded Apr 3, 2024 in 0s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.77.1 (7cf61ebde 2024-03-27)
  • cargo 1.77.1 (e52e36006 2024-03-26)
  • clippy 0.1.77 (7cf61eb 2024-03-27)

Annotations

Check warning on line 10 in src/data_model/time.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/data_model/time.rs:10:1
   |
10 | impl Into<Duration> for Milliseconds {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
           https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
   = 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<data_model::time::Milliseconds>`
   |
10 ~ impl From<Milliseconds> for Duration {
11 ~     fn from(val: Milliseconds) -> Self {
12 ~         Duration::try_milliseconds(val.0).unwrap()
   |

Check warning on line 10 in src/data_model/time.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/data_model/time.rs:10:1
   |
10 | impl Into<Duration> for Milliseconds {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
           https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
   = 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<data_model::time::Milliseconds>`
   |
10 ~ impl From<Milliseconds> for Duration {
11 ~     fn from(val: Milliseconds) -> Self {
12 ~         Duration::try_milliseconds(val.0).unwrap()
   |

Check warning on line 35 in src/data_model/time.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

associated function `new` is never used

warning: associated function `new` is never used
  --> src/data_model/time.rs:35:12
   |
34 | impl Timespan {
   | ------------- associated function in this implementation
35 |     pub fn new(start: DateTimeUtc, end: DateTimeUtc) -> Self {
   |            ^^^
   |
   = note: `#[warn(dead_code)]` on by default