Skip to content

introduce or function#179

Open
oldaccountdeadname wants to merge 2 commits intochyh1990:masterfrom
oldaccountdeadname:master
Open

introduce or function#179
oldaccountdeadname wants to merge 2 commits intochyh1990:masterfrom
oldaccountdeadname:master

Conversation

@oldaccountdeadname
Copy link
Copy Markdown

Similarly to or for Rust's options, this patch provides a way to 'override' the value of a Yaml node if it's some form of error.

It's a pretty small patch: if this type of albeit trivial manipulation is beyond the scope of the library, feel free not to merge! Thanks!

Similarly to `or` for Rust's options, this patch provides a way to
'override' the value of a Yaml node if it's some form of error.
@oldaccountdeadname
Copy link
Copy Markdown
Author

looks like checks are failing --- tests pass on my machine, so I'm not entirely sure what's going on there. Looking at the logs, it looks like the windows-gnu builds are failing due to a missing mingw build, though I'm not familiar with this CI system and don't really know how to fix that.

Allow the usage of `or` without consuming self. This can be useful
for pipelines that maintain some sort of owned state.
@davvid
Copy link
Copy Markdown

davvid commented Jan 29, 2024

FWIW I've merged this into my fork: https://github.com/davvid/yaml-rust/

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