From 5c1deac0cfe66ef27020aa0e863c16f3bc2afb50 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Wed, 6 Nov 2019 12:17:28 -0500 Subject: Remove CoreResource::inspect_repr method (#3274) Towards simplifying (or better removing entirely) the CoreResource trait. Resources should be any bit of privileged heap allocated memory that needs to be referenced from JS, not very specific trait implementations. Therefore CoreResource should be pushed towards being as general as possible. --- cli/worker.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cli/worker.rs') diff --git a/cli/worker.rs b/cli/worker.rs index 90fb95af7..6b4970015 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -31,11 +31,7 @@ pub struct WorkerChannels { pub receiver: mpsc::Receiver, } -impl CoreResource for WorkerChannels { - fn inspect_repr(&self) -> &str { - "worker" - } -} +impl CoreResource for WorkerChannels {} /// Wraps deno::Isolate to provide source maps, ops for the CLI, and /// high-level module loading. -- cgit v1.2.3