We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93ada77 commit c0c6c69Copy full SHA for c0c6c69
src/xlsx/cells_reader.rs
@@ -327,18 +327,15 @@ fn read_v<'s>(
327
) -> Result<DataRef<'s>, XlsxError> {
328
let cell_format = match get_attribute(c_element.attributes(), QName(b"s")) {
329
Ok(Some(style)) => {
330
- let id: usize = std::str::from_utf8(style)
331
- .unwrap_or("0")
332
- .parse()
333
- .unwrap_or(0);
+ let id = atoi_simd::parse::<usize>(style).unwrap_or(0);
334
formats.get(id)
335
}
336
_ => Some(&CellFormat::Other),
337
};
338
match get_attribute(c_element.attributes(), QName(b"t"))? {
339
Some(b"s") => {
340
// shared string
341
- let idx: usize = v.parse()?;
+ let idx = atoi_simd::parse::<usize>(v.as_bytes()).unwrap_or(0);
342
Ok(DataRef::SharedString(&strings[idx]))
343
344
Some(b"b") => {
0 commit comments