Extract magic number defaults into named constants #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low
crates/bootstrap/src/main.rshas inline defaults:unwrap_or(3000)for portunwrap_or(24)for JWT expiry hoursThese should be named constants (e.g.,
const DEFAULT_PORT: u16 = 3000) for self-documenting code.