(&mut self)
| 229 | #[cfg(unix)] |
| 230 | impl Drop for MappedShard { |
| 231 | fn drop(&mut self) { |
| 232 | if !self.mmap_ptr.is_null() && self.mmap_len > 0 { |
| 233 | unsafe { libc::munmap(self.mmap_ptr as *mut _, self.mmap_len); } |
| 234 | } |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | pub struct SafetensorsStorage { |
nothing calls this directly
no outgoing calls
no test coverage detected