We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6070e31 commit 5bf9d7eCopy full SHA for 5bf9d7e
src/resolve/mod.rs
@@ -281,12 +281,9 @@ pub fn resolve<'a>(
281
ctx.jobs
282
.push_back(Job::Regular(*real_file_id, function_i, function_ref));
283
284
- let imported_namespaces =
285
- if let Some(settings) = file.settings.map(|id| &ast_workspace.settings[id.0]) {
286
- Some(&settings.imported_namespaces)
287
- } else {
288
- None
289
- };
+ let imported_namespaces = file
+ .settings
+ .map(|id| &ast_workspace.settings[id.0].imported_namespaces);
290
291
let function_search_context =
292
ctx.function_search_ctxs.get_or_insert_with(file_id, || {
0 commit comments