Clippy clean
This commit is contained in:
@@ -38,6 +38,8 @@ pub struct ParseError {
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
pub type ParserResult<C, T, D> = Result<ParseResult<C, T, D>, ParseError>;
|
||||
|
||||
impl ParseError {
|
||||
pub fn new(message: impl Into<String>) -> Self {
|
||||
Self {
|
||||
@@ -66,7 +68,7 @@ pub trait IncrementalParser {
|
||||
cursor: RopeCursor,
|
||||
fragments: &[SyntaxFragment<Self::Checkpoint, Self::Tree, Self::Diagnostic>],
|
||||
invalidation: ParseInvalidation<Self::Checkpoint>,
|
||||
) -> Result<ParseResult<Self::Checkpoint, Self::Tree, Self::Diagnostic>, ParseError>;
|
||||
) -> ParserResult<Self::Checkpoint, Self::Tree, Self::Diagnostic>;
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user