mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Readability fixes for cargo clippy
This commit is contained in:
1 parent
9dcb12131b
commit
0e35aced01
77 files changed
+725
-735
No files matched your search
@@ -7,7 +7,7 @@ const PARAM_KEY: u8 = 60;
|
||||
pub(super) fn pending_battle_rewards_provider<C: Send + Sync>() -> SimpleFunc<54, crate::UserTy, impl (Fn(ParameterTable<C>, &crate::UserTy) -> Result<ParameterTable<C>, i16>) + Sync + Sync, C> {
|
||||
SimpleFunc::new(|params, _| {
|
||||
let mut params = params.to_dict();
|
||||
params.insert(PARAM_KEY, Typed::Bool(false.into()));
|
||||
params.insert(PARAM_KEY, Typed::Bool(false));
|
||||
Ok(params.into())
|
||||
})
|
||||
}
|
||||
@@ -13,10 +13,10 @@ const PLAYER_XP_PARAM_KEY: u8 = 57;
|
||||
pub(super) fn season_rewards_provider<C: Send + Sync>() -> SimpleFunc<50, crate::UserTy, impl (Fn(ParameterTable<C>, &crate::UserTy) -> Result<ParameterTable<C>, i16>) + Sync + Sync, C> {
|
||||
SimpleFunc::new(|params, _| {
|
||||
let mut params = params.to_dict();
|
||||
params.insert(MONTH_PARAM_KEY, Typed::Int(02));
|
||||
params.insert(MONTH_PARAM_KEY, Typed::Int(2));
|
||||
params.insert(YEAR_PARAM_KEY, Typed::Int(2025));
|
||||
params.insert(ROBITS_PARAM_KEY, Typed::Int(42));
|
||||
params.insert(IS_CLAIMED_PARAM_KEY, Typed::Bool(true.into()));
|
||||
params.insert(IS_CLAIMED_PARAM_KEY, Typed::Bool(true));
|
||||
params.insert(CLAN_AVERAGE_PARAM_KEY, Typed::Int(67));
|
||||
params.insert(CLAN_TOTAL_PARAM_KEY, Typed::Int(42_123));
|
||||
params.insert(CLAN_NAME_PARAM_KEY, Typed::Str("RE_clan_name_rewards".into()));
|
||||
|
||||
Reference in new issue
Block a user