Skip to content

Commit 0f30c2f

Browse files
committed
The return must be a String not a &str.
1 parent 5a1206a commit 0f30c2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/all/test_object_file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ fn apply_target_to_module<'ctx>(target_machine: &TargetMachine, module: &Module)
3333

3434
#[llvm_versions(3.6..4.0)]
3535
fn get_host_cpu_name() -> String {
36-
""
36+
"".to_string()
3737
}
3838
#[llvm_versions(3.6..4.0)]
3939
fn get_host_cpu_features() -> String {
40-
""
40+
"".to_string()
4141
}
4242
#[llvm_versions(3.6..4.0)]
4343
fn ptr_sized_int_type<'ctx>(

0 commit comments

Comments
 (0)