about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-10-29 10:19:09 +0100
committerljedrz <ljedrz@gmail.com>2018-11-10 19:25:25 +0100
commit2f99d09ef7b622286d9eedef1366399cdcca4d6d (patch)
treee045fb8cf2eec9c5c119020dbb41605d9c91dd4e /src/librustc_codegen_llvm
parent815a3b6b6926f07aba4eb03d16ca30053c0b55e0 (diff)
downloadrust-2f99d09ef7b622286d9eedef1366399cdcca4d6d.tar.gz
rust-2f99d09ef7b622286d9eedef1366399cdcca4d6d.zip
codegen_llvm_back: simplify a conversion to char
Diffstat (limited to 'src/librustc_codegen_llvm')
-rw-r--r--src/librustc_codegen_llvm/back/link.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/link.rs b/src/librustc_codegen_llvm/back/link.rs
index 5e12c70753c..111637b6aa9 100644
--- a/src/librustc_codegen_llvm/back/link.rs
+++ b/src/librustc_codegen_llvm/back/link.rs
@@ -806,7 +806,7 @@ fn link_natively(sess: &Session,
                         let mut x = "Non-UTF-8 output: ".to_string();
                         x.extend(s.iter()
                                   .flat_map(|&b| ascii::escape_default(b))
-                                  .map(|b| char::from_u32(b as u32).unwrap()));
+                                  .map(char::from));
                         x
                     })
             }