From aead9dc91eaa51922c8f93daa38d5d18d73e3890 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 26 Aug 2020 00:48:25 +0200 Subject: Remove some more unnecessary 'to_string()' calls (#7190) --- cli/module_graph.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/module_graph.rs') diff --git a/cli/module_graph.rs b/cli/module_graph.rs index 7cbd4cfcc..f7cfe4226 100644 --- a/cli/module_graph.rs +++ b/cli/module_graph.rs @@ -76,8 +76,10 @@ fn validate_no_file_from_remote( match specifier_url.scheme() { "http" | "https" => {} _ => { - let e = ErrBox::new("PermissionDenied", - "Remote modules are not allowed to statically import local modules. Use dynamic import instead.".to_string() + let e = ErrBox::new( + "PermissionDenied", + "Remote modules are not allowed to statically import local \ + modules. Use dynamic import instead.", ); return Err(err_with_location(e, maybe_location)); } -- cgit v1.2.3