codegen_llvm_back: simplify a conversion to char
This commit is contained in:
parent
815a3b6b69
commit
2f99d09ef7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue