We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7e5b67 commit c212003Copy full SHA for c212003
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
13
fn generate_target_mapping(f: &mut File, target_specs: &RustcTargetSpecs) -> std::io::Result<()> {
14
writeln!(f, "use super::Target;")?;
15
writeln!(f)?;
16
- writeln!(
17
- f,
18
- "pub(crate) fn get(target_triple: &str) -> Option<Target> {{"
+ f.write_str("pub(crate) fn get(target_triple: &str) -> Option<Target> {"
19
)?;
20
writeln!(f, " Some(match target_triple {{")?;
21
0 commit comments