summaryrefslogtreecommitdiff
path: root/cli/deno_dir.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-04-17 15:25:51 +0200
committerBert Belder <bertbelder@gmail.com>2019-04-17 15:35:46 +0200
commit8477daa8b970ae8ef042a5242aee705003b63fc1 (patch)
tree61fb35d8b367749c35df82f399c176edc7773464 /cli/deno_dir.rs
parent90c2b10f47ab123f0ea7d71f3eeb3ee9172f7000 (diff)
Fix clippy warnings
Diffstat (limited to 'cli/deno_dir.rs')
-rw-r--r--cli/deno_dir.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/deno_dir.rs b/cli/deno_dir.rs
index 69496b701..5dc9afed3 100644
--- a/cli/deno_dir.rs
+++ b/cli/deno_dir.rs
@@ -652,7 +652,7 @@ fn fetch_remote_source_async(
filename: filename.to_string(),
media_type: map_content_type(
&p,
- maybe_content_type.as_ref().map(|s| s.as_str()),
+ maybe_content_type.as_ref().map(String::as_str),
),
source_code: source.as_bytes().to_owned(),
maybe_output_code_filename: None,