mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #531] [MERGED] fix: dont format filecount when output is set to json #533
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?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/531
Author: @AminurAlam
Created: 10/10/2025
Status: ✅ Merged
Merged: 10/13/2025
Merged by: @bootandy
Base:
master← Head:master📝 Commits (1)
c8e328dfix: dont format filecount when output is set to json📊 Changes
2 files changed (+15 additions, -1 deletions)
View changed files
📝
src/display.rs(+10 -0)📝
src/main.rs(+5 -1)📄 Description
when calculating filecount the count number is formatted as filesize, this pr fixes that
didnt format the number with a comma because json is usually read by other programs not humans
also added tests that basically return the same number as a string
before vs after
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.