Skip to content

Commit

Permalink
syntax: drop some Result type aliases
Browse files Browse the repository at this point in the history
I'm overall coming around to the opinion that these tend to make the
code harder to read. So I've been steadily dropping the Result aliases.
  • Loading branch information
BurntSushi committed Apr 15, 2023
1 parent 3350f1c commit 8736763
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion regex-syntax/src/ast/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl ParserBuilder {
/// constant stack space and moving the call stack to the heap), other
/// crates may.
///
/// This limit is not checked until the entire Ast is parsed. Therefore,
/// This limit is not checked until the entire AST is parsed. Therefore,
/// if callers want to put a limit on the amount of heap space used, then
/// they should impose a limit on the length, in bytes, of the concrete
/// pattern string. In particular, this is viable since this parser
Expand Down
2 changes: 1 addition & 1 deletion regex-syntax/src/hir/translate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ impl<'t, 'p> TranslatorI<'t, 'p> {
fn convert_unicode_class_error(
&self,
span: &Span,
result: unicode::Result<hir::ClassUnicode>,
result: core::result::Result<hir::ClassUnicode, unicode::Error>,
) -> Result<hir::ClassUnicode> {
result.map_err(|err| {
let sp = span.clone();
Expand Down
Loading

0 comments on commit 8736763

Please sign in to comment.