Skip to content

Commit 2f99d09

Browse files
committed
codegen_llvm_back: simplify a conversion to char
1 parent 815a3b6 commit 2f99d09

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_codegen_llvm/back

1 file changed

+1
-1
lines changed

Diff for: src/librustc_codegen_llvm/back/link.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ fn link_natively(sess: &Session,
806806
let mut x = "Non-UTF-8 output: ".to_string();
807807
x.extend(s.iter()
808808
.flat_map(|&b| ascii::escape_default(b))
809-
.map(|b| char::from_u32(b as u32).unwrap()));
809+
.map(char::from));
810810
x
811811
})
812812
}

0 commit comments

Comments
 (0)