mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
codegen_llvm_back: simplify a conversion to char
This commit is contained in:
parent
815a3b6b69
commit
2f99d09ef7
@ -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
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user