Skip to content

Commit 292893a

Browse files
committed
syntax: drop some Result type aliases
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.
1 parent 9a1d8d1 commit 292893a

File tree

3 files changed

+70
-70
lines changed

3 files changed

+70
-70
lines changed

regex-syntax/src/ast/parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl ParserBuilder {
171171
/// constant stack space and moving the call stack to the heap), other
172172
/// crates may.
173173
///
174-
/// This limit is not checked until the entire Ast is parsed. Therefore,
174+
/// This limit is not checked until the entire AST is parsed. Therefore,
175175
/// if callers want to put a limit on the amount of heap space used, then
176176
/// they should impose a limit on the length, in bytes, of the concrete
177177
/// pattern string. In particular, this is viable since this parser

regex-syntax/src/hir/translate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ impl<'t, 'p> TranslatorI<'t, 'p> {
10581058
fn convert_unicode_class_error(
10591059
&self,
10601060
span: &Span,
1061-
result: unicode::Result<hir::ClassUnicode>,
1061+
result: core::result::Result<hir::ClassUnicode, unicode::Error>,
10621062
) -> Result<hir::ClassUnicode> {
10631063
result.map_err(|err| {
10641064
let sp = span.clone();

0 commit comments

Comments
 (0)