This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Merge branch 'master' into fix-validation #673
Annotations
1 error and 10 warnings
security_audit
Critical vulnerabilities were found, marking check as failed
|
security_audit
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/audit-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
security_audit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/audit-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
security_audit
1 vulnerabilities found!
|
variable does not need to be mutable:
src/main.rs#L101
warning: variable does not need to be mutable
--> src/main.rs:101:9
|
101 | let mut labrinth_config = labrinth::app_setup(
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused import: `std::time::Duration`:
src/main.rs#L14
warning: unused import: `std::time::Duration`
--> src/main.rs:14:5
|
14 | use std::time::Duration;
| ^^^^^^^^^^^^^^^^^^^
|
unused import: `std::num::NonZeroU32`:
src/main.rs#L12
warning: unused import: `std::num::NonZeroU32`
--> src/main.rs:12:5
|
12 | use std::num::NonZeroU32;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `KeyedRateLimiter`:
src/main.rs#L9
warning: unused import: `KeyedRateLimiter`
--> src/main.rs:9:33
|
9 | use labrinth::util::ratelimit::{KeyedRateLimiter, RateLimit};
| ^^^^^^^^^^^^^^^^
|
unused imports: `Quota`, `RateLimiter`:
src/main.rs#L5
warning: unused imports: `Quota`, `RateLimiter`
--> src/main.rs:5:16
|
5 | use governor::{Quota, RateLimiter};
| ^^^^^ ^^^^^^^^^^^
|
unused import: `governor::middleware::StateInformationMiddleware`:
src/main.rs#L4
warning: unused import: `governor::middleware::StateInformationMiddleware`
--> src/main.rs:4:5
|
4 | use governor::middleware::StateInformationMiddleware;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead:
src/database/redis.rs#L220
warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead
--> src/database/redis.rs:220:24
|
220 | if Utc.timestamp(val.iat + ACTUAL_EXPIRY, 0) < current_time {
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|