Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml_load.rs: Propagate FromUtf8Error errors from regexes #430

Closed
wants to merge 1 commit into from

Conversation

Enselic
Copy link
Collaborator

@Enselic Enselic commented Mar 14, 2022

This does not change any public API but only adds a new error variant, which an API diff between origin/master and this PR (Propagate-FromUtf8Err) shows:

% cargo public-items --diff-git-checkouts origin/master Propagate-FromUtf8Err
Removed from the public API:
============================
(nothing)

Changes to the public API:
==========================
(nothing)

Added to the public API:
========================
+pub enum variant syntect::parsing::ParseSyntaxError::FromUtf8Error(FromUtf8Error)
+pub fn syntect::parsing::ParseSyntaxError::from(source: FromUtf8Error) -> Self

This is one step towards solving #98

This does not change any public API but only adds a new error variant,
which an [API diff](https://github.com/Enselic/cargo-public-items)
between `origin/master` and this PR shows:

```
% cargo public-items --diff-git-checkouts origin/master Propagate-FromUtf8Err
Removed from the public API:
============================
(nothing)

Changes to the public API:
==========================
(nothing)

Added to the public API:
========================
+pub enum variant syntect::parsing::ParseSyntaxError::FromUtf8Error(FromUtf8Error)
+pub fn syntect::parsing::ParseSyntaxError::from(source: FromUtf8Error) -> Self
```
@Enselic
Copy link
Collaborator Author

Enselic commented Mar 15, 2022

On a second thought, this can be made as part of a minor release later, if at all.

Let's not spend time on this right now.

I have another and maybe even final PR for #98 in the works, but it might take a while before I find the time to get it ready

@Enselic Enselic closed this Mar 15, 2022
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.

None yet

1 participant