summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl-Johan Karlsson <creideiki@ferretporn.se>2022-08-06 21:28:41 +0200
committerKarl-Johan Karlsson <creideiki@ferretporn.se>2022-08-06 21:28:41 +0200
commit4322bfc790d5c81485f3d10382d47af7cd69fd23 (patch)
tree0efa13d970b1b24f2d67e24c475014a3efbf1d94 /src
parentf09b8cabfe7096ec9547d6ea5f670a0681a43f12 (diff)
Switch from memmap to memmap2
memmap is unmaintained, according to RUSTSEC-2020-0077. memmap2 retains the same API.
Diffstat (limited to 'src')
-rw-r--r--src/content_search/magic_numbers.rs2
-rw-r--r--src/content_search/mod.rs2
-rw-r--r--src/content_search/needle.rs2
-rw-r--r--src/hex/hex_view.rs2
-rw-r--r--src/syntactic/syntactic_view.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/content_search/magic_numbers.rs b/src/content_search/magic_numbers.rs
index 50a264f..b7722d1 100644
--- a/src/content_search/magic_numbers.rs
+++ b/src/content_search/magic_numbers.rs
@@ -1,6 +1,6 @@
use {
- memmap::Mmap,
+ memmap2::Mmap,
phf::{phf_set, Set},
};
diff --git a/src/content_search/mod.rs b/src/content_search/mod.rs
index 522cf0f..d2e4edd 100644
--- a/src/content_search/mod.rs
+++ b/src/content_search/mod.rs
@@ -13,7 +13,7 @@ pub use {
};
use {
- memmap::Mmap,
+ memmap2::Mmap,
std::{
fs::File,
io,
diff --git a/src/content_search/needle.rs b/src/content_search/needle.rs
index 8cb092e..95dbfa1 100644
--- a/src/content_search/needle.rs
+++ b/src/content_search/needle.rs
@@ -4,7 +4,7 @@
use {
super::*,
- memmap::Mmap,
+ memmap2::Mmap,
std::{
convert::TryInto,
fmt,
diff --git a/src/hex/hex_view.rs b/src/hex/hex_view.rs
index 66de990..05b85f1 100644
--- a/src/hex/hex_view.rs
+++ b/src/hex/hex_view.rs
@@ -11,7 +11,7 @@ use {
style::{Color, Print, SetForegroundColor},
QueueableCommand,
},
- memmap::Mmap,
+ memmap2::Mmap,
std::{
fs::File,
io,
diff --git a/src/syntactic/syntactic_view.rs b/src/syntactic/syntactic_view.rs
index 481b3c7..8979856 100644
--- a/src/syntactic/syntactic_view.rs
+++ b/src/syntactic/syntactic_view.rs
@@ -14,7 +14,7 @@ use {
style::{Color, Print, SetBackgroundColor, SetForegroundColor},
QueueableCommand,
},
- memmap::Mmap,
+ memmap2::Mmap,
once_cell::sync::Lazy,
std::{
fs::File,