Skip to content

allow only active members to transfer money #278

allow only active members to transfer money

allow only active members to transfer money #278

GitHub Actions / clippy succeeded Mar 9, 2024 in 0s

clippy

4 warnings

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check warning on line 9 in bin/bot/src/discord/slash/bank.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `JUNIOR`, `MEMBER`

warning: unused imports: `JUNIOR`, `MEMBER`
 --> bin/bot/src/discord/slash/bank.rs:9:20
  |
9 |     role::{ACTIVE, JUNIOR, MEMBER, STAFF},
  |                    ^^^^^^  ^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check warning on line 60 in bin/calendar/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `chrono::TimeDelta::hours`: Use `TimeDelta::try_hours` instead

warning: use of deprecated associated function `chrono::TimeDelta::hours`: Use `TimeDelta::try_hours` instead
  --> bin/calendar/src/main.rs:60:25
   |
60 |         .ttl(&Duration::hours(1))
   |                         ^^^^^

Check warning on line 54 in bin/calendar/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `chrono::TimeDelta::minutes`: Use `TimeDelta::try_minutes` instead

warning: use of deprecated associated function `chrono::TimeDelta::minutes`: Use `TimeDelta::try_minutes` instead
  --> bin/calendar/src/main.rs:54:49
   |
54 |                 .ends(start + chrono::Duration::minutes(150i64))
   |                                                 ^^^^^^^

Check warning on line 41 in bin/calendar/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead

warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
  --> bin/calendar/src/main.rs:41:36
   |
41 |         let start = NaiveDateTime::from_timestamp_opt(scheduled.start.unix_timestamp(), 0).unwrap();
   |                                    ^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default