From a990de90fe41456a23e58bd087d2f107d321f3a1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:37:58 +0400 Subject: Deleted vendor folder --- vendor/backtrace/src/symbolize/gimli/mmap_fake.rs | 25 ----------------------- 1 file changed, 25 deletions(-) delete mode 100644 vendor/backtrace/src/symbolize/gimli/mmap_fake.rs (limited to 'vendor/backtrace/src/symbolize/gimli/mmap_fake.rs') diff --git a/vendor/backtrace/src/symbolize/gimli/mmap_fake.rs b/vendor/backtrace/src/symbolize/gimli/mmap_fake.rs deleted file mode 100644 index ce50964..0000000 --- a/vendor/backtrace/src/symbolize/gimli/mmap_fake.rs +++ /dev/null @@ -1,25 +0,0 @@ -use super::{mystd::io::Read, File}; -use alloc::vec::Vec; -use core::ops::Deref; - -pub struct Mmap { - vec: Vec, -} - -impl Mmap { - pub unsafe fn map(mut file: &File, len: usize) -> Option { - let mut mmap = Mmap { - vec: Vec::with_capacity(len), - }; - file.read_to_end(&mut mmap.vec).ok()?; - Some(mmap) - } -} - -impl Deref for Mmap { - type Target = [u8]; - - fn deref(&self) -> &[u8] { - &self.vec[..] - } -} -- cgit v1.2.3