Extract a string value from a TOML `key = "value"` line.
(line: &str)
| 360 | |
| 361 | /// Extract a string value from a TOML `key = "value"` line. |
| 362 | fn extract_toml_string_value(line: &str) -> Option<String> { |
| 363 | let start = line.find('"')?; |
| 364 | let rest = &line[start + 1..]; |
| 365 | let end = rest.find('"')?; |
| 366 | let value = &rest[..end]; |
| 367 | if value.is_empty() { |
| 368 | None |
| 369 | } else { |
| 370 | Some(value.to_string()) |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | // Integration with record_turn |
| 375 |
no test coverage detected