diff options
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r-- | cli/module_graph.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs index 24a20fa43..3fb1379f3 100644 --- a/cli/module_graph.rs +++ b/cli/module_graph.rs @@ -457,7 +457,7 @@ impl ModuleGraphLoader { url: module_specifier.to_string(), redirect: Some(source_file.url.to_string()), filename: source_file.filename.to_str().unwrap().to_string(), - version_hash: checksum::gen(vec![ + version_hash: checksum::gen(&[ &source_file.source_code, version::DENO.as_bytes(), ]), @@ -474,7 +474,7 @@ impl ModuleGraphLoader { let module_specifier = ModuleSpecifier::from(source_file.url.clone()); let version_hash = - checksum::gen(vec![&source_file.source_code, version::DENO.as_bytes()]); + checksum::gen(&[&source_file.source_code, version::DENO.as_bytes()]); let source_code = String::from_utf8(source_file.source_code)?; if SUPPORTED_MEDIA_TYPES.contains(&source_file.media_type) { |