Skip to content

Annotate Transform::transform with #[must_use] and #[inline] #14

@coderabbitai

Description

@coderabbitai

Summary

Transform::transform currently lacks the #[must_use] and #[inline] annotations that were recently added to Next::new. Aligning the annotations will:

  1. Encourage callers to use the returned middleware-wrapped service.
  2. Hint the compiler to inline small adaptor implementations for performance.

Context

Acceptance Criteria

  • Transform::transform is annotated with #[must_use] (with an explanatory message) and #[inline].
  • Documentation updated to reflect the change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions