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 1d77d92 commit 5783df2Copy full SHA for 5783df2
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