summaryrefslogtreecommitdiff
path: root/core/module_specifier.rs
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-12-23 22:59:44 +0800
committerRy Dahl <ry@tinyclouds.org>2019-12-23 09:59:44 -0500
commit3bb15ceaeaf5cd349afcb2e2d43374efd420aaef (patch)
treeb169369521f66bbca1c71a96f0059bef6d61fe00 /core/module_specifier.rs
parente88c801e76c16d4c0a92702e248cf811038ed4ab (diff)
Upgrades rust to 1.40.0 (#3542)
Diffstat (limited to 'core/module_specifier.rs')
-rw-r--r--core/module_specifier.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/module_specifier.rs b/core/module_specifier.rs
index ad24616ff..dd5347a33 100644
--- a/core/module_specifier.rs
+++ b/core/module_specifier.rs
@@ -402,7 +402,7 @@ mod tests {
);
tests.extend(vec![
(r"/deno/tests/006_url_imports.ts", expected_url.to_string()),
- (r"\deno\tests\006_url_imports.ts", expected_url.to_string()),
+ (r"\deno\tests\006_url_imports.ts", expected_url),
]);
// Relative local path.
@@ -413,8 +413,8 @@ mod tests {
tests.extend(vec![
(r"tests/006_url_imports.ts", expected_url.to_string()),
(r"tests\006_url_imports.ts", expected_url.to_string()),
- (r"./tests/006_url_imports.ts", expected_url.to_string()),
- (r".\tests\006_url_imports.ts", expected_url.to_string()),
+ (r"./tests/006_url_imports.ts", (*expected_url).to_string()),
+ (r".\tests\006_url_imports.ts", (*expected_url).to_string()),
]);
// UNC network path.
@@ -437,7 +437,7 @@ mod tests {
let expected_url = format!("file://{}/tests/006_url_imports.ts", cwd_str);
tests.extend(vec![
("tests/006_url_imports.ts", expected_url.to_string()),
- ("./tests/006_url_imports.ts", expected_url.to_string()),
+ ("./tests/006_url_imports.ts", expected_url),
]);
}