diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2021-07-30 22:03:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 15:03:41 +0200 |
commit | 8f00b5542caffd14988b923efe4f066b712d2858 (patch) | |
tree | e56ebefb0b73a2205bc482a0a6f55e87bd35a92b /cli/lsp/analysis.rs | |
parent | c909faf9e6cd2964398da7c0852d0229cdd1a22b (diff) |
chore: upgrade Rust to 1.54.0 (#11554)
Diffstat (limited to 'cli/lsp/analysis.rs')
-rw-r--r-- | cli/lsp/analysis.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs index 3d25145c1..aae67f87a 100644 --- a/cli/lsp/analysis.rs +++ b/cli/lsp/analysis.rs @@ -291,7 +291,7 @@ pub fn parse_module( ast::parse_with_source_map( &specifier.to_string(), source, - &media_type, + media_type, source_map, ) } @@ -309,7 +309,7 @@ pub fn analyze_dependencies( // Parse leading comments for supported triple slash references. for comment in parsed_module.get_leading_comments().iter() { - if let Some((ts_reference, span)) = parse_ts_reference(&comment) { + if let Some((ts_reference, span)) = parse_ts_reference(comment) { let loc = parsed_module.source_map.lookup_char_pos(span.lo); match ts_reference { TypeScriptReference::Path(import) => { @@ -364,7 +364,7 @@ pub fn analyze_dependencies( let maybe_resolved_type_dependency = // Check for `@deno-types` pragmas that affect the import if let Some(comment) = desc.leading_comments.last() { - parse_deno_types(&comment).as_ref().map(|(deno_types, span)| { + parse_deno_types(comment).as_ref().map(|(deno_types, span)| { ( resolve_import(deno_types, specifier, maybe_import_map), deno_types.clone(), |