summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools')
-rw-r--r--cli/tools/check.rs2
-rw-r--r--cli/tools/info.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs
index 4ec677f8f..a2bfb9d9b 100644
--- a/cli/tools/check.rs
+++ b/cli/tools/check.rs
@@ -427,7 +427,7 @@ fn get_tsc_roots(
// now walk the graph that only includes the fast check dependencies
while let Some(specifier) = pending.pop_front() {
- let Some(module) = graph.get(&specifier) else {
+ let Some(module) = graph.get(specifier) else {
continue;
};
if let Some(entry) = maybe_get_check_entry(module, check_js) {
diff --git a/cli/tools/info.rs b/cli/tools/info.rs
index a15252c7c..a32f9dc45 100644
--- a/cli/tools/info.rs
+++ b/cli/tools/info.rs
@@ -440,7 +440,7 @@ impl<'a> GraphDisplayContext<'a> {
}
let root_specifier = self.graph.resolve(&self.graph.roots[0]);
- match self.graph.try_get(&root_specifier) {
+ match self.graph.try_get(root_specifier) {
Ok(Some(root)) => {
let maybe_cache_info = match root {
Module::Js(module) => module.maybe_cache_info.as_ref(),
@@ -694,9 +694,9 @@ impl<'a> GraphDisplayContext<'a> {
Resolution::Ok(resolved) => {
let specifier = &resolved.specifier;
let resolved_specifier = self.graph.resolve(specifier);
- Some(match self.graph.try_get(&resolved_specifier) {
+ Some(match self.graph.try_get(resolved_specifier) {
Ok(Some(module)) => self.build_module_info(module, type_dep),
- Err(err) => self.build_error_info(err, &resolved_specifier),
+ Err(err) => self.build_error_info(err, resolved_specifier),
Ok(None) => TreeNode::from_text(format!(
"{} {}",
colors::red(specifier),