We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20883b2 commit 3f18f8dCopy full SHA for 3f18f8d
srcwr💾/src/lib.rs
@@ -88,7 +88,10 @@ pub extern "C" fn rust_post_to_replay_thread(
88
unsafe {
89
let len = pathsarray.size;
90
for i in 0..len {
91
- pathsvec.push(strxx(ICellArray_at(pathsarray, i), false, 0).unwrap_or_default().to_string());
+ let s = strxx(ICellArray_at(pathsarray, i), false, 0).unwrap_or_default().to_string();
92
+ if !pathsvec.contains(&s) {
93
+ pathsvec.push(s);
94
+ }
95
}
96
97
0 commit comments