Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to output the feature status only in --version #191

Merged
merged 1 commit into from
Nov 14, 2021

Conversation

sorairolake
Copy link
Contributor

@sorairolake sorairolake commented Nov 12, 2021

Remove the feature status from output of -V and --help (same as rg).

src/utils.rs Outdated Show resolved Hide resolved
Copy link
Owner

@ducaale ducaale left a comment

Choose a reason for hiding this comment

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

LGTM

@ducaale ducaale merged commit d2ac5cf into ducaale:develop Nov 14, 2021
@sorairolake sorairolake deleted the long-version branch November 14, 2021 09:13
@@ -1009,6 +1009,11 @@ fn safe_exit() -> ! {
std::process::exit(0);
}

#[inline]
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's no need to add this, "obvious" things are inlined automatically. Compilers really like inlining things.

You only need it if you want something to be inlined across crates, or if you think the compiler will guess wrong.

(It's harmless so there's no hurry to clean it up, and I did the same thing in buffer.rs before I knew this 🙂)

Copy link
Owner

Choose a reason for hiding this comment

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

Oh I see. I will remember to remove the inline attribute here before making a release tonight.

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.

3 participants