Skip to content

docs(guide/dev): pipe-trait usage#361

Merged
KSXGitHub merged 3 commits into
masterfrom
claude/document-pipe-trait-usage-ml2JD
Mar 21, 2026
Merged

docs(guide/dev): pipe-trait usage#361
KSXGitHub merged 3 commits into
masterfrom
claude/document-pipe-trait-usage-ml2JD

Conversation

@KSXGitHub

Copy link
Copy Markdown
Owner

Added comprehensive documentation for the pipe-trait crate usage patterns to the CONTRIBUTING.md file, establishing clear guidelines for when and how to use the Pipe trait in the codebase.

https://claude.ai/code/session_01DQYEAgJo7PnTgu9ejF1N1p

@github-actions

github-actions Bot commented Mar 21, 2026

Copy link
Copy Markdown

Performance Regression Reports

commit: 8b6c0dc

There are no regressions.

The key pattern is chaining through any unary callable, not specifically
constructors or newtypes — those are just common instances.

https://claude.ai/code/session_01DQYEAgJo7PnTgu9ejF1N1p

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds formal guidance on using the pipe-trait Pipe trait across the repository, clarifying when piping improves readability (continuing chains, avoiding nested calls) and when it should be avoided (standalone unary calls).

Changes:

  • Documented pipe-trait usage patterns (including .pipe_as_ref()) in CONTRIBUTING.md.
  • Updated agent/instruction docs to include the new pipe-trait guideline as a quick-reference bullet.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
CONTRIBUTING.md Adds a dedicated “Using pipe-trait” section with do/don’t guidance and examples.
CLAUDE.md Adds a concise bullet summarizing the pipe-trait guideline.
AGENTS.md Adds the same pipe-trait quick-reference bullet for agents.
.github/copilot-instructions.md Adds the same pipe-trait quick-reference bullet for Copilot instructions.

@KSXGitHub KSXGitHub marked this pull request as ready for review March 21, 2026 15:39
@KSXGitHub KSXGitHub merged commit 50ba05e into master Mar 21, 2026
17 checks passed
@KSXGitHub KSXGitHub deleted the claude/document-pipe-trait-usage-ml2JD branch March 21, 2026 15:39
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