0xPlaygrounds / 0xPlaygrounds/rig

Get rid of 0 -1 sentinel values

Ouverte
#2,181 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
8.6k
Forks
959
Merge moyen
4 h 32 min
PR mergées (30 j)
117

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
backend
Type d'issue
Refactorisation
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
65/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.