-
Notifications
You must be signed in to change notification settings - Fork 40
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
Simplify Regex
type and rename it to PreventSyncPattern
#9049
Open
touilleMan
wants to merge
6
commits into
master
Choose a base branch
from
simplify-regex
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touilleMan
force-pushed
the
simplify-regex
branch
4 times, most recently
from
November 29, 2024 14:55
d3f86d3
to
424bd3e
Compare
#[derive(Error, Debug)] | ||
pub enum PreventSyncPatternError { | ||
#[error("Regex parsing error: {err}")] | ||
BadRegex { err: regex::Error }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use tuple style for error since it only has one value.
That simplify errors handling since we can do
.map_error(PreventSyncPattern::BadRegex)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very good point ! thx
…s/unit/local_folder_manifest.rs`
…rs` -> `prevent_sync_pattern.rs` in libparsec_types
…start` for extra clarity
…sult}` -> `PreventSyncPattern{Error|Result}`
touilleMan
force-pushed
the
simplify-regex
branch
from
November 29, 2024 16:23
424bd3e
to
16794e0
Compare
- Remove useless $ escape code (already handled by `fnmatch_regex`) - Fix panic in libparsec bindings when config contains invalid pattern - Remove parsing from file to simplify API - More consistent naming in methods - Add more tests \o/
touilleMan
force-pushed
the
simplify-regex
branch
from
November 29, 2024 16:31
16794e0
to
ac89683
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.