We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Allocator
AllocatorGuard
1 parent 537d2dd commit dbbd9c9Copy full SHA for dbbd9c9
crates/oxc_linter/src/service/runtime.rs
@@ -893,7 +893,9 @@ impl Runtime {
893
let mut records =
894
SmallVec::<[Result<ResolvedModuleRecord, Vec<OxcDiagnostic>>; 1]>::new();
895
896
- let module_content = ModuleContent::try_new(allocator_guard, |allocator| {
+ let module_content = ModuleContent::try_new(allocator_guard, |allocator_guard| {
897
+ let allocator = &**allocator_guard;
898
+
899
let Some(stt) = self.get_source_type_and_text(Path::new(path), ext, allocator)
900
else {
901
return Err(());
0 commit comments