diff --git a/dev-tools/gen-target-info/src/main.rs b/dev-tools/gen-target-info/src/main.rs index 8723ecff..7d34dc10 100644 --- a/dev-tools/gen-target-info/src/main.rs +++ b/dev-tools/gen-target-info/src/main.rs @@ -13,9 +13,7 @@ const PRELUDE: &str = r#"//! This file is generated code. Please edit the genera fn generate_target_mapping(f: &mut File, target_specs: &RustcTargetSpecs) -> std::io::Result<()> { writeln!(f, "use super::Target;")?; writeln!(f)?; - writeln!( - f, - "pub(crate) fn get(target_triple: &str) -> Option {{" + f.write_str("pub(crate) fn get(target_triple: &str) -> Option {" )?; writeln!(f, " Some(match target_triple {{")?;