Abstractions

This commit is contained in:
Chaoscaot
2023-04-01 10:30:25 +02:00
parent 8f15b42146
commit 818de6be47
6 changed files with 43 additions and 23 deletions

View File

@ -45,8 +45,8 @@ pub extern "system" fn Java_SchemSearch_search<'local>(mut env: JNIEnv<'local>,
});
let mut result = String::new();
for (x, y, z, p) in matches {
result.push_str(&format!("{}, {}, {}, {};", x, y, z, p));
for m in matches {
result.push_str(&format!("{}, {}, {}, {};", m.x, m.y, m.z, m.percent));
}
result.remove(result.len() - 1);
let output = env.new_string(result).expect("Couldn't create java string!");