diff options
author | Ry Dahl <ry@tinyclouds.org> | 2019-11-07 14:21:45 -0500 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-11-07 11:21:45 -0800 |
commit | 2cf0866ba3f4a32a180e0b02484ef1798216c6e1 (patch) | |
tree | a63503697b079771efe11d7eb3dc0054abe09621 /cli/compilers | |
parent | 709cb3c9ba0d968dc356861952a3c63129e57615 (diff) |
upgrade: Rust 1.39.0 (#3286)
Diffstat (limited to 'cli/compilers')
-rw-r--r-- | cli/compilers/ts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Vec<u8>> { 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<String> { |