Skip to content

head: remove Default trait from HeadOptions#12261

Open
cakebaker wants to merge 1 commit into
uutils:mainfrom
cakebaker:head_remove_default
Open

head: remove Default trait from HeadOptions#12261
cakebaker wants to merge 1 commit into
uutils:mainfrom
cakebaker:head_remove_default

Conversation

@cakebaker
Copy link
Copy Markdown
Contributor

I noticed that we use let mut options = Self::default(); in the constructor of HeadOptions, followed by setting all of its properties again. This PR simplifies the constructor and removes the Default trait from HeadOptions.

@cakebaker cakebaker force-pushed the head_remove_default branch from 7ea912e to a715a8e Compare May 12, 2026 14:39
@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/follow-name (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/expand/bounded-memory is now passing!
Congrats! The gnu test tests/printf/printf-surprise is now passing!

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.

1 participant