From 2cf0866ba3f4a32a180e0b02484ef1798216c6e1 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Thu, 7 Nov 2019 14:21:45 -0500 Subject: upgrade: Rust 1.39.0 (#3286) --- cli/compilers/ts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/compilers') diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index 3c36f14c4..854963eaa 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -580,7 +580,7 @@ impl SourceMapGetter for TsCompiler { fn get_source_map(&self, script_name: &str) -> Option> { self .try_to_resolve_and_get_source_map(script_name) - .and_then(|out| Some(out.source_code)) + .map(|out| out.source_code) } fn get_source_line(&self, script_name: &str, line: usize) -> Option { -- cgit v1.2.3