docs: update rustdoc comments

This commit is contained in:
raf 2025-06-02 19:03:12 +03:00
commit ee54f8f8d3
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 410 additions and 60 deletions

View file

@ -506,7 +506,6 @@ fn convert_parse_error_to_formatter_error(
suggestion: None,
},
ParseError::MissingToken { expected } => {
// Try to find current position from last token
let (line, column) = if let Some(last_token) = tokens.last() {
position_from_range(&last_token.range, source)
} else {
@ -520,7 +519,6 @@ fn convert_parse_error_to_formatter_error(
}
}
ParseError::InvalidExpression { message } => {
// Try to find the current token position
let (line, column) = find_current_parse_position(tokens, source);
FormatterError::SyntaxError {
line,