Rust: fix regression in getFormat
indexing
#18074
+20
−19
Merged
getFormat
indexing
#18074