Skip to content

Commit c212003

Browse files
madsmtmNobodyXu
andauthored
Use write_str
Co-authored-by: Jiahao XU <[email protected]>
1 parent e7e5b67 commit c212003

File tree

1 file changed

+1
-3
lines changed
  • dev-tools/gen-target-info/src

1 file changed

+1
-3
lines changed

dev-tools/gen-target-info/src/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ const PRELUDE: &str = r#"//! This file is generated code. Please edit the genera
1313
fn generate_target_mapping(f: &mut File, target_specs: &RustcTargetSpecs) -> std::io::Result<()> {
1414
writeln!(f, "use super::Target;")?;
1515
writeln!(f)?;
16-
writeln!(
17-
f,
18-
"pub(crate) fn get(target_triple: &str) -> Option<Target> {{"
16+
f.write_str("pub(crate) fn get(target_triple: &str) -> Option<Target> {"
1917
)?;
2018
writeln!(f, " Some(match target_triple {{")?;
2119

0 commit comments

Comments
 (0)