diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-10-29 10:19:09 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-11-10 19:25:25 +0100 |
| commit | 2f99d09ef7b622286d9eedef1366399cdcca4d6d (patch) | |
| tree | e045fb8cf2eec9c5c119020dbb41605d9c91dd4e /src/librustc_codegen_llvm | |
| parent | 815a3b6b6926f07aba4eb03d16ca30053c0b55e0 (diff) | |
| download | rust-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.rs | 2 |
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 }) } |
