Skip to content

Add must_use annotation to ColoredString#224

Open
cgzones wants to merge 1 commit intocolored-rs:masterfrom
cgzones:must_use
Open

Add must_use annotation to ColoredString#224
cgzones wants to merge 1 commit intocolored-rs:masterfrom
cgzones:must_use

Conversation

@cgzones
Copy link

@cgzones cgzones commented Jan 30, 2026

Creating a ColoredString includes a costly string allocation, so instances should be used.

Closes: #198

Creating a ColoredString includes a costly string allocation, so
instances should be used.

Closes: colored-rs#198
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.

Consider adding #[must_use] in Colorize methods

1 participant