From eb283c43f5601df54b7086578daef9793a36a56f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 25 Jun 2024 21:42:18 -0400 Subject: refactor: bump deno_graph to 0.79 (#24337) No fixes in this to my knowledge. Just an upgrade. The functionality here will be used in a different PR. --- cli/graph_util.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cli/graph_util.rs') diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 67c179293..14f0aaace 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -843,7 +843,7 @@ fn get_resolution_error_bare_specifier( error: &ResolutionError, ) -> Option<&str> { if let ResolutionError::InvalidSpecifier { - error: SpecifierError::ImportPrefixMissing(specifier, _), + error: SpecifierError::ImportPrefixMissing { specifier, .. }, .. } = error { @@ -1065,7 +1065,10 @@ mod test { start: Position::zeroed(), end: Position::zeroed(), }, - error: SpecifierError::ImportPrefixMissing(input.to_string(), None), + error: SpecifierError::ImportPrefixMissing { + specifier: input.to_string(), + referrer: None, + }, }; assert_eq!(get_resolution_error_bare_node_specifier(&err), output,); } -- cgit v1.2.3