Skip to content

refactor: replaced manual byte formatting with format_bytes utility#44

Merged
SickleFire merged 2 commits into
SickleFire:masterfrom
law65horizon:refactor/use-format-bytes
Jun 10, 2026
Merged

refactor: replaced manual byte formatting with format_bytes utility#44
SickleFire merged 2 commits into
SickleFire:masterfrom
law65horizon:refactor/use-format-bytes

Conversation

@law65horizon

Copy link
Copy Markdown
Contributor

Closes #34

Replaced all manual byte formatting across the codebase with the existing format_bytes utility from src/utils/formatting.rs, as directed by the maintainer.

Files changed:

  • src/main.rs
  • src/ui/commands.rs
  • src/ui/tui.rs
  • src/ui/render.rs — also removed the now-redundant format_size function
  • src/core/scan.rs
  • src/core/delta.rs
  • src/utils/mod.rs — added to expose the utils module

@SickleFire SickleFire left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @law65horizon ,

Thank you for taking the time to update the codebase to use the new format_bytes implementation. This is a great cleanup effort and ensures consistency across the entire repository.

The changes look solid. Merging rn.

@SickleFire SickleFire merged commit 24236fd into SickleFire:master Jun 10, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory byte size formatter

2 participants