Skip to content

feat!(cache): rewrite redis code to use serde less #237

feat!(cache): rewrite redis code to use serde less

feat!(cache): rewrite redis code to use serde less #237

Triggered via push September 11, 2024 21:08
Status Success
Total duration 34s
Artifacts

clippy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
clippy
clippy-action doesn't have permissions to create Check Runs, disabling!
clippy
Resource not accessible by integration - https://docs.github.com/rest/checks/runs#create-a-check-run
this function depends on never type fallback being `()`: src/main.rs#L46
warning: this function depends on never type fallback being `()` --> src/cache.rs:46:5 | 46 | pub async fn get_player_info(&self, uuid: uuid::Uuid) -> Result<Option<PlayerInfo>> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/cache.rs:56:21 | 56 | con.zadd(UNKNOWN_SET_KEY, uuid.to_string(), expire_time()) | ^^^^ = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
this function depends on never type fallback being `()`: src/main.rs#L64
warning: this function depends on never type fallback being `()` --> src/cache.rs:64:5 | 64 | / pub async fn set_player_info( 65 | | &self, 66 | | uuid: uuid::Uuid, 67 | | opt_player: Option<PlayerInfo>, 68 | | ) -> Result<()> { | |___________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/cache.rs:78:22 | 78 | .query_async(&mut *con) | ^^^^^^^^^^^
this function depends on never type fallback being `()`: src/main.rs#L90
warning: this function depends on never type fallback being `()` --> src/cache.rs:90:5 | 90 | pub async fn get_all_players(&self) -> anyhow::Result<(Vec<PlayerInfo>, Vec<String>)> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/cache.rs:123:13 | 123 | con.zrembyscore(UNKNOWN_SET_KEY, "-inf", now()).await?; | ^^^^^^^^^^^
3 warnings emitted
warning: 3 warnings emitted