(path: &Path)
| 45 | |
| 46 | impl AllocatorLib { |
| 47 | pub fn from_path_static(path: &Path) -> Result<Self, Box<dyn std::error::Error>> { |
| 48 | let kind = find_statically_linked_allocator(path).ok_or("No allocator found")?; |
| 49 | Ok(Self { |
| 50 | kind, |
| 51 | path: path.to_path_buf(), |
| 52 | }) |
| 53 | } |
| 54 | } |
nothing calls this directly
no test coverage detected