Skip to content

Commit

Permalink
Use write_str
Browse files Browse the repository at this point in the history
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
  • Loading branch information
madsmtm and NobodyXu authored Oct 31, 2024
1 parent e7e5b67 commit c212003
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dev-tools/gen-target-info/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Target> {{"
f.write_str("pub(crate) fn get(target_triple: &str) -> Option<Target> {"
)?;
writeln!(f, " Some(match target_triple {{")?;

Expand Down

0 comments on commit c212003

Please sign in to comment.