(msg: &SessionMessage)
| 518 | } |
| 519 | |
| 520 | fn loaded_instruction_paths(msg: &SessionMessage) -> HashSet<String> { |
| 521 | msg.metadata |
| 522 | .get("loaded_instruction_files") |
| 523 | .and_then(|value| value.as_array()) |
| 524 | .map(|items| { |
| 525 | items |
| 526 | .iter() |
| 527 | .filter_map(|item| item.as_str().map(ToString::to_string)) |
| 528 | .collect() |
| 529 | }) |
| 530 | .unwrap_or_default() |
| 531 | } |
| 532 | |
| 533 | fn store_loaded_instruction_paths(msg: &mut SessionMessage, loaded: HashSet<String>) { |
| 534 | if loaded.is_empty() { |