diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-08-26 00:48:25 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-08-26 01:13:20 +0200 |
commit | aead9dc91eaa51922c8f93daa38d5d18d73e3890 (patch) | |
tree | 01df8f95e41586ce816d0c08b17c6c53d75425a1 /cli/module_graph.rs | |
parent | 9bfb0df805719cb3f022a5b5d9f9d898ae954c2e (diff) |
Remove some more unnecessary 'to_string()' calls (#7190)
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r-- | cli/module_graph.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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)); } |