summaryrefslogtreecommitdiff
path: root/cli/worker.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 /cli/worker.rs
parente88c801e76c16d4c0a92702e248cf811038ed4ab (diff)
Upgrades rust to 1.40.0 (#3542)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index e35458d39..410d6ee44 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -243,8 +243,7 @@ mod tests {
let p = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
- .join("tests/esm_imports_a.js")
- .to_owned();
+ .join("tests/esm_imports_a.js");
let module_specifier =
ModuleSpecifier::resolve_url_or_path(&p.to_string_lossy()).unwrap();
let global_state = ThreadSafeGlobalState::new(
@@ -288,8 +287,7 @@ mod tests {
let p = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
- .join("tests/circular1.ts")
- .to_owned();
+ .join("tests/circular1.ts");
let module_specifier =
ModuleSpecifier::resolve_url_or_path(&p.to_string_lossy()).unwrap();
let global_state = ThreadSafeGlobalState::new(
@@ -335,8 +333,7 @@ mod tests {
let p = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
- .join("cli/tests/006_url_imports.ts")
- .to_owned();
+ .join("cli/tests/006_url_imports.ts");
let module_specifier =
ModuleSpecifier::resolve_url_or_path(&p.to_string_lossy()).unwrap();
let mut flags = flags::DenoFlags::default();
@@ -353,7 +350,7 @@ mod tests {
int,
)
.unwrap();
- let global_state_ = global_state.clone();
+ let global_state_ = global_state;
let state_ = state.clone();
tokio_util::run(async move {
let mut worker = Worker::new(
@@ -501,8 +498,7 @@ mod tests {
let p = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
- .join("tests/002_hello.ts")
- .to_owned();
+ .join("tests/002_hello.ts");
let module_specifier =
ModuleSpecifier::resolve_url_or_path(&p.to_string_lossy()).unwrap();
let result =