Skip to content

Conversation

@jamesbt365
Copy link
Member

If aformat and Cow was a little bit smarter here we could push this even further and move allocations to the stack, but:

  1. aformat doesn't support padding the 0s of a number out? (we could just use arraystring manually, but with the following part, i don't think its worth it)
  2. Cow<'lifetime str> doesn't work with ArrayString

If anybody wants to get it working with ArrayString go ahead.

Besides right now its a pretty cold path due to nobody but bots having a descriminator.

@github-actions github-actions bot added the model Related to the `model` module. label Jul 5, 2025
@arqunis arqunis added the enhancement An improvement to Serenity. label Jul 5, 2025
@arqunis arqunis merged commit 357010d into serenity-rs:next Jul 5, 2025
24 checks passed
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Jul 28, 2025
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Jul 28, 2025
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 7, 2025
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 7, 2025
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement to Serenity. model Related to the `model` module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants