style: 自动格式化修正
This commit is contained in:
@@ -19,7 +19,7 @@ impl From<oxc_diagnostics::OxcDiagnostic> for OxideError {
|
||||
let span = diag
|
||||
.labels
|
||||
.clone()
|
||||
.and_then(|labels| labels.first().map(|l| (l.offset() as usize, (l.offset() + l.len()) as usize)))
|
||||
.and_then(|labels| labels.first().map(|l| (l.offset(), l.offset() + l.len())))
|
||||
.unwrap_or((0, 0));
|
||||
|
||||
OxideError {
|
||||
|
||||
@@ -7,7 +7,10 @@ pub use oxc_allocator::Allocator;
|
||||
pub use oxc_ast::ast::*;
|
||||
pub use oxc_span::Span;
|
||||
|
||||
pub fn parse<'a>(allocator: &'a Allocator, source: &'a str) -> Result<Program<'a>, Vec<OxideError>> {
|
||||
pub fn parse<'a>(
|
||||
allocator: &'a Allocator,
|
||||
source: &'a str,
|
||||
) -> Result<Program<'a>, Vec<OxideError>> {
|
||||
use oxc_parser::Parser;
|
||||
use oxc_span::SourceType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user