codegen_llvm_back: simplify a conversion to char

This commit is contained in:
ljedrz 2018-10-29 10:19:09 +01:00
parent 815a3b6b69
commit 2f99d09ef7

View file

@ -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
})
}