(&self, path: &str, content: &str)
| 624 | |
| 625 | impl MemoryWorkspaceFs { |
| 626 | fn insert(&self, path: &str, content: &str) { |
| 627 | self.files |
| 628 | .write() |
| 629 | .unwrap() |
| 630 | .insert(path.to_string(), content.to_string()); |
| 631 | } |
| 632 | |
| 633 | fn get(&self, path: &str) -> Option<String> { |
| 634 | self.files.read().unwrap().get(path).cloned() |