0xPlaygrounds / 0xPlaygrounds/rig

Get rid of 0 -1 sentinel values

未关闭
#2,181 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
8.6k
派生
959
平均合并
4 小时 32 分钟
30 天内合并 PR
117

描述

Rig occasionally uses 0 to mean infinite, should probably switch those to Option types or use NonZerou64 magic

贡献指南

打开贡献指南

调研方向

Find where 0 and -1 sentinel values are used to represent infinite or missing values in the codebase. Replace them with Option types or NonZeroU64 as appropriate. Look for patterns in numeric handling, especially in configuration or limit settings. Run existing tests to ensure the refactor doesn't break functionality.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
backend
Issue 类型
重构
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。