Skip to content

Add TryFrom<Output> for SanitizedOutput#4201

Merged
rami3l merged 1 commit intorust-lang:masterfrom
smoelius:try-from-sanitized-output
Mar 2, 2025
Merged

Add TryFrom<Output> for SanitizedOutput#4201
rami3l merged 1 commit intorust-lang:masterfrom
smoelius:try-from-sanitized-output

Conversation

@smoelius
Copy link
Copy Markdown
Contributor

@smoelius smoelius commented Mar 1, 2025

SanitizedOutputs have String stdout and stderr fields. This makes SanitizedOutputs easier to display than Outputs.

This commit adds a TryFrom<Output> implementation for SanitizedOutput. In this way, a test can run a command to produce an Output, and from that Output produce a SanitizedOutput.

Extracted from #4175

`SanitizedOutput`s have `String` `stdout` and `stderr` fields. This
makes `SanitizedOutput`s easier to display than `Output`s.

This commit adds a `TryFrom<Output>` implementation for
`SanitizedOutput`. In this way, a test can run a command to produce an
`Output`, and from that `Output` produce a `SanitizedOutput`.

Extracted from #4175
Copy link
Copy Markdown
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

Thanks a lot :)

@rami3l rami3l added this pull request to the merge queue Mar 2, 2025
Merged via the queue into rust-lang:master with commit fa44b9b Mar 2, 2025
29 checks passed
@djc djc mentioned this pull request Mar 2, 2025
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.

2 participants