This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ pub(crate) fn compile_fn(
192
192
let pass_times = cranelift_codegen:: timing:: take_current ( ) ;
193
193
// Replace newlines with | as measureme doesn't allow control characters like
194
194
// newlines inside strings.
195
- recorder. record_arg ( format ! ( "{}" , pass_times) . replace ( " \n " , " | " ) ) ;
195
+ recorder. record_arg ( format ! ( "{}" , pass_times) . replace ( '\n' , " | " ) ) ;
196
196
recording_args = true ;
197
197
} ,
198
198
)
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ pub(crate) fn compile_global_asm(
125
125
let output_object_file = config. output_filenames . temp_path ( OutputType :: Object , Some ( cgu_name) ) ;
126
126
127
127
// Assemble `global_asm`
128
- let global_asm_object_file = add_file_stem_postfix ( output_object_file. clone ( ) , ".asm" ) ;
128
+ let global_asm_object_file = add_file_stem_postfix ( output_object_file, ".asm" ) ;
129
129
let mut child = Command :: new ( & config. assembler )
130
130
. arg ( "-o" )
131
131
. arg ( & global_asm_object_file)
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ pub(crate) fn write_clif_file(
245
245
for flag in isa. flags ( ) . iter ( ) {
246
246
writeln ! ( file, "set {}" , flag) ?;
247
247
}
248
- write ! ( file, "target {}" , isa. triple( ) . architecture. to_string ( ) ) ?;
248
+ write ! ( file, "target {}" , isa. triple( ) . architecture) ?;
249
249
for isa_flag in isa. isa_flags ( ) . iter ( ) {
250
250
write ! ( file, " {}" , isa_flag) ?;
251
251
}
You can’t perform that action at this time.
0 commit comments